Hi all,
Following problem keeps me busy several days now....
I'm using hobbit 4.2.0.
I want to create a custom graph and use ncv to create the rrd file. I receive data from a custom script on the client, a column "usage" appears on the hobbit display. The rrd file is created, but no graph is created, what's wrong??
In the data is a parameter in the following format: usage:1
hobbitserver.cfg is configured: TEST2RRD="cpu=la,disk,.....,usage=ncv" GRAPHS="la,disk,......,usage" NCV_usage="usage:GAUGE"
This works fine, a file named usage.rrd is created.
Dump from usage.rrd: <!-- Round Robin Database Dump --> <rrd> <version> 0001 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1164183687 </lastupdate> <!-- 2006-11-22 09:21:27 CET -->
<ds>
<name> usage </name>
<type> DERIVE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> 1 </last_ds>
<value> 0.0000000000e+00 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
hobbitgraph.cfg is configured: [usage] TITLE Usage YAXIS # Users DEF:u=usage.rrd:usage:AVERAGE COMMENT:\n GPRINT:u:LAST: \: %5.1lf (cur) GPRINT:u:MAX: \: %5.1lf (max) GPRINT:u:MIN: \: %5.1lf (min) GPRINT:u:AVERAGE: \: %5.1lf (avg)\n
Result: no graph is being displayed, what is missing or am I doing wrong?
Regards,
Johan Rutten
The RRD isn't picking up the right value, you put NCV_usage="usage:GAUGE" but in the rrd you're getting :
<ds> <name> usage </name> <type> DERIVE </type> <-- this is the default
Can you please send the output message hobbit displays for this status. Also do you see a hyperlink at the bottom of the status saying anything like ncv status graph? Jason.
-----Original Message----- From: J.Rutten at rad.umcn.nl [mailto:J.Rutten at rad.umcn.nl] Sent: 22 November 2006 08:41 To: hobbit at hswn.dk Subject: [hobbit] No graph from RRD data
Hi all,
Following problem keeps me busy several days now....
I'm using hobbit 4.2.0.
I want to create a custom graph and use ncv to create the rrd file. I receive data from a custom script on the client, a column "usage" appears on the hobbit display. The rrd file is created, but no graph is created, what's wrong??
In the data is a parameter in the following format: usage:1
hobbitserver.cfg is configured: TEST2RRD="cpu=la,disk,.....,usage=ncv" GRAPHS="la,disk,......,usage" NCV_usage="usage:GAUGE"
This works fine, a file named usage.rrd is created.
Dump from usage.rrd: <!-- Round Robin Database Dump --> <rrd> <version> 0001 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1164183687 </lastupdate> <!-- 2006-11-22 09:21:27 CET -->
<ds>
<name> usage </name>
<type> DERIVE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> 1 </last_ds>
<value> 0.0000000000e+00 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
hobbitgraph.cfg is configured: [usage] TITLE Usage YAXIS # Users DEF:u=usage.rrd:usage:AVERAGE COMMENT:\n GPRINT:u:LAST: \: %5.1lf (cur) GPRINT:u:MAX: \: %5.1lf (max) GPRINT:u:MIN: \: %5.1lf (min) GPRINT:u:AVERAGE: \: %5.1lf (avg)\n
Result: no graph is being displayed, what is missing or am I doing wrong?
Regards,
Johan Rutten
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Nov 22, 2006 at 09:40:36AM +0100, J.Rutten at rad.umcn.nl wrote:
NCV_usage="usage:GAUGE" <ds> <name> usage </name> <type> DERIVE </type>
These don't match. I guess your Hobbit created the rrd file using the default DERIVE datatype, before you remembered to put in the NCV_usage setting. That's why your graph stays at 0 - DERIVE tracks changes, whereas GAUGE tracks absolute values.
Make sure that hobbitd_rrd has been restarted after you changed the NCV_usage setting. Then delete the rrd file; the next time Hobbit creates it it should have the correct dataset type, and your graph should start showing the values you expect.
Henrik
Just wanted to say Happy Holidays to those of you who celebrate Thanksgiving.
Thanks for such great software!
--neil
Defense Commissary Agency CISIS Senior Systems Administrator ManTech (804) 734-8362 neil.camp at deca.mil
participants (4)
-
henrik@hswn.dk
-
J.Rutten@rad.umcn.nl
-
JasonAS_Jones@mentor.com
-
neil.camp@deca.mil