Hi fellow XYmonians,
I have a script that periodically checks my DSL speed and reports 2 values:
Download : 13400801 Upload : 1027604
which are Bit/s. Actually it reports MBit/s and I recalculate the Bits. Now I want to graph these values.
This is what I have in graphs.cfg:
[speed] TITLE DSL Speed Info YAXIS Mbit/s DEF:Download=speed.rrd:Download:AVERAGE DEF:Upload=speed.rrd:Upload:AVERAGE LINE2:Download#00CCCC:Download LINE2:Upload#FF0000:Upload COMMENT:\n GPRINT:Download:LAST:Download \: %2.2lf%s (cur) GPRINT:Download:MAX:Download \: %2.2lf%s (max) GPRINT:Download:MIN:Download \: %2.2lf%s (min) GPRINT:Download:AVERAGE:Download \: %2.2lf%s (avg)\n GPRINT:Upload:LAST:Upload \: %2.2lf%s (cur) GPRINT:Upload:MAX:Upload \: %2.2lf%s (max) GPRINT:Upload:MIN:Upload \: %2.2lf%s (min) GPRINT:Upload:AVERAGE:Upload \: %2.2lf%s (avg)\n
and this is in xymonserver.cfg:
TEST2RRD="...,speed=ncv,..." GRAPHS="...,speed" NCV_speed="Download:GAUGE,Upload:GAUGE"
The test runs every 20 minutes and I can see in speed.rrd the values on top of the file:
<?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>1443085347</lastupdate> <!-- 2015-09-24 11:02:27 CEST -->
<ds>
<name> Download </name>
<type> GAUGE </type>
<minimal_heartbeat>600</minimal_heartbeat>
<min>NaN</min>
<max>NaN</max>
<!-- PDP Status -->
<last_ds>13400801</last_ds>
<value>NaN</value>
<unknown_sec> 147 </unknown_sec>
</ds>
<ds>
<name> Upload </name>
<type> GAUGE </type>
<minimal_heartbeat>600</minimal_heartbeat>
<min>NaN</min>
<max>NaN</max>
<!-- PDP Status -->
<last_ds>1027604</last_ds>
<value>NaN</value>
<unknown_sec> 147 </unknown_sec>
</ds>
But these values are not passed down to the "archive" section of the file. So I might be missing something or maybe my graph definition is wrong. Can someone with a little bit more knowledge of RRD shed some light on this.
Thanks Torsten
On 24/09/15 11:21, bb4 at richter-it.net wrote:
Hi fellow XYmonians, I have a script that periodically checks my DSL speed and reports 2 values: ........
The test runs every 20 minutes and I can see in speed.rrd the values on top of the file: <?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>1443085347</lastupdate> <!-- 2015-09-24 11:02:27 CEST -->
<ds> <name> Download </name> <type> GAUGE </type><minimal_heartbeat>600</minimal_heartbeat> <min>NaN</min> <max>NaN</max>
Increase the heartbeat from 600 [s] to f.i. 2500 [s]. Then it is allowed that the script misses one pass without a hole in the graph.
Regards, Wim Nelis.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Wim,
thanks for the answer but how and where do I increase the heartbeat. Do I have to create a new section in rrddefinitions.cfg?
Thanks Torsten
On 24.09.2015 12:05, W.J.M. Nelis wrote:
On 24/09/15 11:21, bb4 at richter-it.net wrote:
Hi fellow XYmonians, I have a script that periodically checks my DSL speed and reports 2 values: ........
The test runs every 20 minutes and I can see in speed.rrd the values on top of the file: <?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>1443085347</lastupdate> <!-- 2015-09-24 11:02:27 CEST -->
<ds> <name> Download </name> <type> GAUGE </type><minimal_heartbeat>600</minimal_heartbeat> <min>NaN</min> <max>NaN</max>
Increase the heartbeat from 600 [s] to f.i. 2500 [s]. Then it is allow ed that the script misses one pass without a hole in the graph.
Regards, Wim Nelis.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
+---------------------------------------------------------+ | E-mail : bb4 [at] richter-it.net | | | | Homepage: http://www.richter-it.net/ | +---------------------------------------------------------+ Download my public key from: http://gpg-keyserver.de/pks/lookup?search=0x899093AC&op=get -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32)
iEYEARECAAYFAlYEGi4ACgkQ7DlmxomQk6zG2ACglNegTqec8G07goPIOUJ7F+Re HZ0AoLeJma/arivewRWVSzD9/a2E8zr1 =e8nd -----END PGP SIGNATURE-----
On 25 September 2015 at 01:43, Torsten Richter <bb4 at richter-it.net> wrote:
thanks for the answer but how and where do I increase the heartbeat. Do I have to create a new section in rrddefinitions.cfg?
Yes and no. New RRD files are created with the parameters in rrddefinitions.cfg. But existing files will either need to be deleted and re-created, or modifed using rrdtune. See a thread on this:
http://lists.xymon.com/pipermail/xymon/2012-December/036429.html
Cheers Jeremy
participants (3)
-
bb4@richter-it.net
-
jlaidman@rebel-it.com.au
-
Wim.Nelis@nlr.nl