Xymon Mailing List Archive search

Graphing revisited

6 messages in this thread

list Rich Smrcina · Fri, 21 Oct 2005 06:44:14 -0500 ·
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 · Fri, 21 Oct 2005 14:26:59 +0200 ·
quoted from Rich Smrcina
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 · Fri, 21 Oct 2005 08:03:35 -0500 ·
Beautiful!  The graph shows up now.  I'll watch it to see if the data points actually get plotted.

Thanks!
quoted from Henrik Størner

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

-- 
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 · Fri, 21 Oct 2005 09:20:36 -0500 ·
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?
quoted from Rich Smrcina

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

-- 
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 · Fri, 21 Oct 2005 10:20:52 -0400 ·
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 · Fri, 21 Oct 2005 16:03:21 -0500 ·
Found it!  The CDEF was dividing the value by 100, once I removed it the graph appears just the way I wanted it.

Thanks.
quoted from Rich Smrcina

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

-- 
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