[mrtg] integrate rrdcached with mrtg
Stuart Kendrick
skendric at fhcrc.org
Sun Nov 1 15:37:05 CET 2009
So what does it take to integrate rrdcached with MRTG?
From a quick & dirty point of view, it seems to me that I could change line 854
(mrtg-2.16.2) as follows:
from
if ( $RRDs::VERSION >= 1.2 ){
$rrddata=RRDs::updatev($dotrrd, "$time:$inlast:$outlast");
} else {
RRDs::update($dotrrd, "$time:$inlast:$outlast");
}
to
if ( $RRDs::VERSION >= 1.2 ){
$rrddata=RRDs::updatev($dotrrd, "--daemon
unix:/tmp/rrdcached.sock", "$time:$inlast:$outlast");
} else {
RRDs::update($dotrrd, "$time:$inlast:$outlast");
}
Is it this easy? Or am I totally missing how hard this is?
--sk
Stuart Kendrick
FHCRC
More information about the mrtg
mailing list