Graphing revisited
list Rich Smrcina
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: (XXX)XXX-XXXX
Ans Service: (360)715-2467
user-61add9955ef9@xymon.invalid
Catch the WAVV! http://www.wavv.org
WAVV 2006 - Chattanooga, TN - April 7-11, 2006
list Henrik Størner
▸
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
list Rich Smrcina
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 UtilizationI'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
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (XXX)XXX-XXXX Ans Service: (360)715-2467 user-61add9955ef9@xymon.invalid Catch the WAVV! http://www.wavv.org WAVV 2006 - Chattanooga, TN - April 7-11, 2006
list Rich Smrcina
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 UtilizationI'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
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (XXX)XXX-XXXX Ans Service: (360)715-2467 user-61add9955ef9@xymon.invalid Catch the WAVV! http://www.wavv.org WAVV 2006 - Chattanooga, TN - April 7-11, 2006
list Michael Nemeth
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) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX |><___________) | Home Page:http://www.geocities.com/mjnemeth/ | Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ | Work Page:http://ortsweb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Rich Smrcina
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 UtilizationI'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
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (XXX)XXX-XXXX Ans Service: (360)715-2467 user-61add9955ef9@xymon.invalid Catch the WAVV! http://www.wavv.org WAVV 2006 - Chattanooga, TN - April 7-11, 2006