Xymon Mailing List Archive search

rrddefinitons.cfg - how to modify the default step in RRA

list Nicolas Lienard
Fri, 8 Feb 2013 16:44:25 +0100
Message-Id: <user-446deb5342b9@xymon.invalid>

Hi

I think you are right, issue is my graph are created with data/trends without any column.

I hope Henrik will provide a patch to handle this case :)

I found a thread on ML where Henrik replied about the step:

http://lists.xymon.com/archive/2011-November/033057.html


The default for RRD-files generated by Xymon is to get updates in 5 minute intervals. To fix this you should define the RRD in the "rrddefinitions.cfg" file and specify a different update interval. If you update it once every 15 minutes = 900 seconds, then you can copy most of the default setup in that file, and just change the interval. Like this: 

[sfap/900] 
RRA:AVERAGE:0.5:1:576  RRA:AVERAGE:0.5:6:576 RRA:AVERAGE:0.5:24:576 RRA:AVERAGE:0.5:288:576

So, it seems that the -s is replaced by [column/step] at the end.
Going to try with NCV method...
Thanks again.
Cheers
Nico

Le 08/02/2013 à 15:55, Michael Beatty <user-4aea7c115850@xymon.invalid> a écrit :
From the rrddef.cfg comments:
# Each section key is the column- or data-name reported from your
# client test. Typically this is "cpu", "memory", "tcp", or some
# custom test you have created.

In your original script:
[ buda ext]# cat httpd_threads.sh 
#!/bin/bash
THREADS_HTTP=`ps -ef | grep -c [h]ttpd`
LINE="data $MACHINE.trends
[httpd_threads.rrd]
DS:threads:GAUGE:5:U:U $THREADS_HTTP"
$BB $BBDISP "$LINE"


it appears that your  data name is "trends".  This is what xymon is trying to match in rrddef.cvf.  The key you should be using in rrddef.cfg. 

[trends]
    -s 5
    RRA:AVERAGE:0.5:60:576
    RRA:AVERAGE:0.5:360:576
    RRA:AVERAGE:0.5:1440:576
    RRA:AVERAGE:0.5:17280:576

With that said, "trends" is already a column heading... I'm not sure that using it for your rrd key won't cause other problems in xymon.  Maybe change it to "httpd_threads"?

If that doesn't work, try putting the -s in the default section "[]", and see if that works.  You shouldn't leave it there as it will set all future graphs to a 5 second step, but it works there, then you know your problem is with your data name and key.