I've read the archived messages, the man pages and the doc and I still can not seem to get this right.
I have an external test that sends a message to Hobbit, something like this:
status vm1.sp_util green 21 Oct 2005 06:28:31 Spool Utilization 16 %
(this is what is sent by the external script, is there a way to see what is actually received?)
I've modified the 'extra.sh' script to check for this test:
if [ "$TESTNAME" = "sp_util" ]
then
# Analyze Spool Utilization message
SP_UTIL=grep "Spool Utilization" $FNAME | awk '{print $10}'
# The RRD dataset definitions
echo "DS:sp_util:GAUGE:600:0:100"
# The filename
echo "sp_util.rrd"
# The data
echo "$SP_UTIL"
fi
I've added 'sp_util' to the --extra-tests option in the rrdstatus section of hobbitlaunch.cfg
I've added this section to hobbitgraph.cfg:
[sp_util] TITLE Spool Utilization YAXIS Spool Utilization DEF:avg=sp_util.rrd:sp_util:AVERAGE CDEF:sp_util=avg,100,/ AREA:SP_UTIL#00CC00:Spool Utilization -u 1.0 GPRINT:sp_util:LAST: \: %3.0lf (cur) GPRINT:sp_util:MAX: \: %3.0lf (max) GPRINT:sp_util:MIN: \: %3.0lf (min) GPRINT:sp_util:AVERAGE: \: %3.0lf (avg)\n
An rrd file is being created and a link is being put on the status web page, but no graph is being displayed. Just the text 'hobbit graph sp_util', which is the alt tag in the img definition.
This leads me to believe that there is something wrong with the graph image itself.
Are all of these steps correct, where did I go wrong?
Thanks.
Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (414)491-6001 Ans Service: (360)715-2467 rich.smrcina at vmassist.com
Catch the WAVV! http://www.wavv.org WAVV 2006 - Chattanooga, TN - April 7-11, 2006
On Fri, Oct 21, 2005 at 06:44:14AM -0500, Rich Smrcina wrote:
I've added this section to hobbitgraph.cfg:
[sp_util] TITLE Spool Utilization YAXIS Spool Utilization DEF:avg=sp_util.rrd:sp_util:AVERAGE CDEF:sp_util=avg,100,/ AREA:SP_UTIL#00CC00:Spool Utilization
I'd be suspicious of this line - variable names in RRD are case- sensitive, so I think it should be AREA:sp_util#00CC00:Spool Utilization in all-lowercase.
Regards, Henrik
Beautiful! The graph shows up now. I'll watch it to see if the data points actually get plotted.
Thanks!
Henrik Stoerner wrote:
On Fri, Oct 21, 2005 at 06:44:14AM -0500, Rich Smrcina wrote:
I've added this section to hobbitgraph.cfg:
[sp_util] TITLE Spool Utilization YAXIS Spool Utilization DEF:avg=sp_util.rrd:sp_util:AVERAGE CDEF:sp_util=avg,100,/ AREA:SP_UTIL#00CC00:Spool Utilization
I'd be suspicious of this line - variable names in RRD are case- sensitive, so I think it should be AREA:sp_util#00CC00:Spool Utilization in all-lowercase.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (414)491-6001 Ans Service: (360)715-2467 rich.smrcina at vmassist.com
Catch the WAVV! http://www.wavv.org WAVV 2006 - Chattanooga, TN - April 7-11, 2006
How to force disk graphs to one per FS ? This is under the disk dot
not the trends column.
Im planning to make a new disk grapk which show all Total Used
Available in one graph.
OK I may need to make this a new dot (diskfs).
Also How would I create a disk1 dot .
That is Id like disk dot(per-cents) , disk1 dot (size) , diskfs (one per
fs sizes)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| _p_ Mike Nemeth
| ___| |_____ email(w) michael.nemeth at lmco.com Work: 856 359-1425
|><___________) | Home Page:http://www.geocities.com/mjnemeth/
| Work Page:http://faraday.motown.lmco.com:3000/~nemethm/
| Work Page:http://ortsweb/~mnemeth/
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ok the data point is showing up. But the values on the bottom, cur, max,min,avg have no values (do they just take more time?). Also, if I want to change the scale to 0-100, is it enough to change the -u option to 100.0?
Henrik Stoerner wrote:
On Fri, Oct 21, 2005 at 06:44:14AM -0500, Rich Smrcina wrote:
I've added this section to hobbitgraph.cfg:
[sp_util] TITLE Spool Utilization YAXIS Spool Utilization DEF:avg=sp_util.rrd:sp_util:AVERAGE CDEF:sp_util=avg,100,/ AREA:SP_UTIL#00CC00:Spool Utilization
I'd be suspicious of this line - variable names in RRD are case- sensitive, so I think it should be AREA:sp_util#00CC00:Spool Utilization in all-lowercase.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (414)491-6001 Ans Service: (360)715-2467 rich.smrcina at vmassist.com
Catch the WAVV! http://www.wavv.org WAVV 2006 - Chattanooga, TN - April 7-11, 2006
Found it! The CDEF was dividing the value by 100, once I removed it the graph appears just the way I wanted it.
Thanks.
Rich Smrcina wrote:
Ok the data point is showing up. But the values on the bottom, cur, max,min,avg have no values (do they just take more time?). Also, if I want to change the scale to 0-100, is it enough to change the -u option to 100.0?
Henrik Stoerner wrote:
On Fri, Oct 21, 2005 at 06:44:14AM -0500, Rich Smrcina wrote:
I've added this section to hobbitgraph.cfg:
[sp_util] TITLE Spool Utilization YAXIS Spool Utilization DEF:avg=sp_util.rrd:sp_util:AVERAGE CDEF:sp_util=avg,100,/ AREA:SP_UTIL#00CC00:Spool Utilization
I'd be suspicious of this line - variable names in RRD are case- sensitive, so I think it should be AREA:sp_util#00CC00:Spool Utilization in all-lowercase.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (414)491-6001 Ans Service: (360)715-2467 rich.smrcina at vmassist.com
Catch the WAVV! http://www.wavv.org WAVV 2006 - Chattanooga, TN - April 7-11, 2006
participants (3)
-
henrik@hswn.dk
-
michael.nemeth@lmco.com
-
rsmrcina@wi.rr.com