[rrd-users] Setting RRDCACHED_ADDRESS globally

Steve Shipway s.shipway at auckland.ac.nz
Sun Jan 20 21:52:31 CET 2013


If using Apache, you can set the environment variable globally in the httpd.
conf (using SetEnv) and this is passed on to all CGI scripts.  This works
for most applications; however note that not all things will go via
RRDcached, particularly if you are not using 1.4.trunk of RRDTool/rrdcached.
You might like to make sure that the files are local as well, else things
like ‘info’ will fail which might confuse cacti.

 

Steve

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 924 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail : 打印本邮件,
将减少一棵树存活的机会

 

From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of Simon Hobson
Sent: Friday, 18 January 2013 10:41 p.m.
To: rrd-users at lists.oetiker.ch
Subject: [rrd-users] Setting RRDCACHED_ADDRESS globally

 

I've just started looking at using Cacti internally for some stuff as my
hand-rolled cgi scripts aren't the easiest to maintain. However, I've hit a
problem with caching.
Where I have remote data collection, I use rrdcached. But Cacti doesn't have
an option to add a --daemon switch or set the RRDCACHED_ADDRESS environment
variable. I've found I can set RRDCACHED_ADDRESS globally for the web server
either by adding it to the Apache config - but that breaks any rrdtool graph
calls for rrds that don't use cached.
 
I can try hacking the Cacti code where it builds the graph definition, but I
guess I'd need to look at the RRD path and figure out if it's handled
directly or cached - and that'll mean learning some PHP.
 
 
Any other suggestions ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130120/57de4ee2/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5900 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130120/57de4ee2/attachment-0001.bin 


More information about the rrd-users mailing list