Re: MRTG with RRDcached tuning

Steve Shipway <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <7294716191A1E142B80615ED2C633BCA01382C6E@uxcn10-2.UoA.auckland.ac.nz>
As a comparison, we use the rrdcached options: 

    -s mrtg -m 0660 -l unix:/var/tmp/rrdcached.sock -l mrtg.auckland.ac.nz
-l localhost -z 60 

    -p /var/tmp/rrdcached.pid -t 4 -j /u01/rrdtool/journal -b /u01/rrdtool
-w 1800 -O -a 6

 

This has had a significant improvement on our previous IO problems.

 

For the frontend, you could use Routers2 (which supports rrdcached directly
:).  However, if you prefer to use 14all, then you can still do this via
rrrdcached, at least  if you are using Apache.  Just set the
RRDCACHED_ADDRESS environment variable appropriately in the web server so
that it is set when the CGI is called, and this will make the 14all calls
all use rrdcached, where possible.

 

<Directory "/u01/www/cgi-bin">

   SetEnv RRDCACHED_ADDRESS unix:/var/tmp/rrdcached.sock

</Directory>

 

You might want to consider using the trunk version of rrdtool, since this
has more comprehensive rrdcached support for the various rrdtool functions.

 

I still find rrdcached tuning a bit of a black art, and I've been
investigating it for some time.

 

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:[email protected]> [email protected]

P Please consider the environment before printing this e-mail 

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of
Pavel Ruzicka
Sent: Wednesday, 1 August 2012 1:14 a.m.
To: [email protected]
Subject: [mrtg] MRTG with RRDcached tuning

 

Hello,

 

I succesfully enabled RRDCached for my MRTG setup.

I have mrtg-2.17.4 and rrdtool-1.4.7.

I am trying to spread kernel flushes in a time with enabling RRDCached.

Daemon runs with "-w 900 -z 900" parameters, but it looks like all kernel
flushes are still in a same time every 5 minutes.

Can somebody recommend me his parameters for rrdcached?

 

I want to try spread writes to one hour, but I want to graph actual data.

I use 14all.cgi and it doesn't support rrdcached. Have somebody 14all.cgi

patched for rrdcached support? I am not perl guru.

I know, that I must add something like this for RRD graph function

"--daemon unix:/var/run/rrdcached.sock" but I don't know how cleanly

to read path from mrtg config and add it to the code.

Mail of author [email protected] doesn't work...

 

Best regards,

 

Pavel Ruzicka

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
smime.p7s (application/x-pkcs7-signature, 5.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.