[hobbit] Representing disk data for graphing

Hubbard, Greg L greg.hubbard at eds.com
Wed Oct 11 19:25:15 CEST 2006


Yes, the "&color" now counts as a token, so any grep/awk/sed (or
equivalent) is going to be off by one.  Is this information included in
the overall data blast from the Hobbit client?  If so, you might
consider tacking the colors at the END of each line and see if the
Hobbit parser starts working again.

For reference, here is something from a Solaris system:

Wed Oct 11 12:19:50 CDT 2006 - Filesystems OK
Filesystem            kbytes    used   avail capacity  Mounted on
swap                 18665136  107640 18557496     1%    /tmp
/dev/vx/dsk/rootvol  9210413 1561203 7557106    18%    /
/dev/vx/dsk/var      8263373 1775692 6405048    22%    /var
/dev/vx/dsk/opt2     34291077 2384649 31563518     8%    /opt2
/dev/vx/dsk/home     1021735  614185  346246    64%    /export/home

Notice that the filesystem is token 1, the usage is token 2, and
available space is token 3, etc., etc.

These are just ideas.  I've written 7 or 8 custom tests of my own with
my own RRD parsing at the end, so I quickly became acquainted with the
need for agreement between the "pitcher" and the "catcher".

GLH 

-----Original Message-----
From: Rich Smrcina [mailto:rsmrcina at wi.rr.com] 
Sent: Wednesday, October 11, 2006 12:02 PM
To: hobbit at hswn.dk
Subject: Re: [hobbit] Representing disk data for graphing

I verified that the routine parsing the data for the graphs is picking
the third token on the first line.  I changed the first line to look
like the Unix equivalent (the date format, etc) and it is consistently
picking the third item.

The '2006' is becoming the name of the data point and the value being
graphed is zero.

I'm just sending the data (there is no back end routine or extra script
involved), I'm letting Hobbit to the parsing.

Adding the icon (I do use &color, when I cut and pasted it from Firefox
'green' came out) is messing up the parsing such that no graph data is
produced.

Hubbard, Greg L wrote:
> Notice that the third (3rd) token in the first line of the message is 
> "2006".  The amount of disk space that is used is also the third token

> on each usage line.  I suspect that the parsing script is getting 
> fooled.  Is this your own script?  If so, you should use &green (or 
> &yellow and &red) and Hobbit will replace it with a proper status
"dot."
> 
> GLH
> 
> -----Original Message-----
> From: Rich Smrcina [mailto:rsmrcina at wi.rr.com]
> Sent: Wednesday, October 11, 2006 7:52 AM
> To: hobbit at hswn.dk
> Subject: [hobbit] Representing disk data for graphing
> 
> I'm interested in changing the way that I report disk utilization for 
> mainframe based operating systems (VM and VSE) so that it can be 
> graphed by RRD.  The basic message format seems right, but the graph 
> is not coming out properly.  Here is the message text:
> 
>   11 Oct 2006 07:45:23 Disk/SFS Utilization OK
> 
>     Filesystem        kbytes       used      avail capacity Mounted as
> green /dev/0124       14400        720      13680   5.0%
/440RES/DRCT 
> 
> green /dev/0124       36000          0      36000   0.0%
/440RES/TDISK
> 
> 
> green /dev/0124      128160      32168      95992  25.1%
/440RES/SPOOL
> 
> 
> green /dev/0124       96480       2112      94368   2.2%
/440RES/PAGE 
> 
> green /dev/0102      216000      17636     198364   8.2%
/PAGSP1/SPOOL
> 
> 
> green /dev/0102     2187360          0    2187360   0.0%
/PAGSP1/PAGE 
> 
> green /VMSYS/group2  120088       5268     114820   4.4%   /SFS/VMSYS
> green /VMSYSU/group2   4280        488       3792  11.4%   /SFS/VMSYSU
> green /VMSYSU/group3  71896          0      71896   0.0%   /SFS/VMSYSU
> 
> The 'green' indicator on the left is a green icon put there to easily 
> spot an offender.  Is that messing up the parsing of the message for 
> graphing purposes?  Or is it possibly the decimal points in the 
> percentages?
> 
> The graph is coming up with a single data point called 2006.
> --
> Rich Smrcina
> VM Assist, Inc.
> Phone: 414-491-6001
> Ans Service:  360-715-2467
> rich.smrcina at vmassist.com
> 
> Catch the WAVV!  http://www.wavv.org
> WAVV 2007 - Green Bay, WI - May 18-22, 2007
> 
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
> 
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
> 
> 

--
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467
rich.smrcina at vmassist.com

Catch the WAVV!  http://www.wavv.org
WAVV 2007 - Green Bay, WI - May 18-22, 2007

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk





More information about the Xymon mailing list