[mrtg] integrate rrdcached with mrtg

JL mrtg joseluis.megias at satec.es
Wed Nov 11 12:42:30 CET 2009


Hi

I use RRDCACHED_ADDRESS environment variable:
  export  RRDCACHED_ADDRESS=127.0.0.1

I run rrdcached as:
  rrdcached -l 127.0.0.1 <more params>

but when I run mrtg I get:
  ERROR: Cannot update file.rrd with '1257937902:14296586674:19866901102'
The "RRDCACHED_ADDRESS" environment variable is defined, but "dummy" cannot
work with rrdcached. Either unset the environment variable or use "update"
instead

:(


Stuart Kendrick wrote:
> 
> 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
> 
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
> 
> 





-- 
View this message in context: http://n2.nabble.com/integrate-rrdcached-with-mrtg-tp3927135p3985856.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.



More information about the mrtg mailing list