[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rrd 10 minute intervals
- To: hobbit (at) hswn.dk
- Subject: rrd 10 minute intervals
- From: Scott Ryan <scottlryan (at) gmail.com>
- Date: Wed, 27 Jan 2010 10:17:18 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=76yxKcbgGbsq15ynU2Ohgbni4giXj/jUyXNuLdCO/aA=; b=cgyZlnTv0EGMJtvNcAqI9HKoU4tVlXnz6mcp/Fquy9xp123VDW3JYdGtp+b/sSuqDF +GRQlqdyy/3LpDN8Y3lzwKwJYOg3TkciCUkRG7uZGesaCSI0rxBxv2oLq+6dyveZuC8D tKpEG1Ei3GzNRQdt/rfGGVk/bpIH/EW4hbMsc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=k5TLmdKhlRvac5ayYmxm3mbFxzfSkqfoLOj2j7Av1r54IR+DJua1kISdO2f4IjoJ9E ldBZAkWCTtERYb2YaVCPGHtKQD6ER43XcMF0UzBt32ibL3sT4TQ4lXxyOVjotDx9wJaE V1YJ9X9qj9x1q4sjXPx+ggdf6OoREU2AC9idY=
I have a custom check that I have integrated into xymon.
The data for the check I want to graph using NCV/RRDtool as
COUNTER/DERIVE data (as it is an ever increasing number)
Problem I am having is that the data is only updated every 10 minutes.
I configured the graph in /etc/xymon/hobbitgraph.d/somegraph.cfg - you
can see I added the --step 600 option.
[sms]
TITLE SMS Statistics
YAXIS No_SMS
DEF:Failures=sms.rrd:Failures:AVERAGE
DEF:Successes=sms.rrd:Successes:AVERAGE
AREA:Failures#00cccc:Failures:STACK
AREA:Successes#FF0000:Successes:STACK
COMMENT:\n
--step 600
GPRINT:Failures:LAST:Failures \: %5lf%s (cur)
GPRINT:Failures:MAX: \: %5.0lf%s (max)
GPRINT:Failures:MIN: \: %5.0lf%s (min)
GPRINT:Failures:AVERAGE: \: %5.0lf%s (avg)\n
GPRINT:Successes:LAST:Successes \: %5.1lf%s (cur)
GPRINT:Successes:MAX: \: %5.1lf%s (max)
GPRINT:Successes:MIN: \: %5.1lf%s (min)
GPRINT:Successes:AVERAGE: \: %5.1lf%s (avg)\n
In the hobbitserver.cfg as well as adding sms=ncv to get the graphing
to work - I added:
NCV_sms="*:DERIVE:600"
My script runs every 10 minutes from the hobbitlaunch.d directory.
The data in the rrd file does not tie up though from the rrdtool
dump. The last_ds is correct, but the actual value keeps returning NaN
- and hence the graph does not generate.
<ds>
<name> Failures </name>
<type> DERIVE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 6.0000000000e+02 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> 2252 </last_ds>
<value> NaN </value>
<unknown_sec> 138 </unknown_sec>
</ds>
If I decrease the step or the hearbeat to the default of 5 mins, then
the graph looks completely wrong.
I would appreciate any thoughts or ideas.
--
Scott Ryan