Hi
I need to do a temporarily graph with a very low frequency : 5 seconds instead of the regular 300 seconds.
1/ On client side, the external script is simple:
[ 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"
So, as you can see, the step is 5 in the DS.
clientlaunch.cfg has "INTERVAL 5s".
2/ On Xymon server side :
rrddefinitions.cfg :
step = 5 seconds
[httpd_threads/5] # 576 * 60 * 5 sec = 48 h soit 2 jours sans perte RRA:AVERAGE:0.5:60:576 RRA:AVERAGE:0.5:360:576 RRA:AVERAGE:0.5:1440:576 RRA:AVERAGE:0.5:17280:576
This one is the default setup. You can change it, if you like.
[] # 576 datapoints w/ 5 minute interval = 48 hours @ 5 min avg. RRA:AVERAGE:0.5:1:576 # 576 datapoints w/ 6*5 minute averaged = 12 days @ 30 min avg. RRA:AVERAGE:0.5:6:576 # 576 datapoints w/ 24*5 minute averaged = 48 days @ 2 hour avg. RRA:AVERAGE:0.5:24:576 # 576 datapoints w/ 288*5 minute averaged = 576 days @ 1 day avg. RRA:AVERAGE:0.5:288:576
3/ RRD created:
here the issue, the step is still 300. The minimal_heartbeat is 5.
rrdtool dump httpd_threads.rrd
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd"> <!-- Round Robin Database Dump --> <rrd> <version>0003</version> <step>300</step> <!-- Seconds --> <lastupdate>1360264485</lastupdate> <!-- 2013-02-07 20:14:45 CET -->
<ds>
<name> threads </name>
<type> GAUGE </type>
<minimal_heartbeat>5</minimal_heartbeat
--- snip ---
How can i change the step to 5 instead of 300 ?
Thanks for your help.
Cheers Nico