[hobbit] Re: Custom RRD graphs

Rich Smrcina rsmrcina at wi.rr.com
Sat Nov 12 18:22:57 CET 2005


Brilliant detective work Dan.  I am trying something similar, but 
haven't had the good luck that you enjoy.

Here is the status message being produced for a column called pg_util 
(Page Utilization):

status vm1.pg_util green 12 Nov 2005 10:55:57  Page Utilization  OK
pg_util : 1


z/VM Version 4 Release 4.0, service level 0402 (32-bit)
             EXTENT EXTENT  TOTAL  PAGES   HIGH    %
VOLID  RDEV  START    END  PAGES IN USE   PAGE USED
------ ---- ------ ------ ------ ------ ------ ----
440RES 0124    257    390  24120    529    559   2%
PAGSP1 0102    301   3338 546840      0      0   0%
                           ------ ------        ----
SUMMARY                   570960    529          1%
USABLE                    570960    529          1%

TEST2RRD contains 'pg_util=ncv' (it's not at the end, does it need to 
be?) and

NCV_pg_util="pg_util:GAUGE"

I've disabled the code in the extra script for this test and removed it 
from the --extra-tests list.  I've verified with ps that hobbitd_channel 
and hobbitd_larrd aren't using them anymore.  I still have a custom 
graph defined for this test, is that allowed using NCV or doesn't it care?

Dan Vande More wrote:
> Ok, I found the issue.
> 
> Though I've written dozens of bb clients, I've never come across
> exactly how BB expects the information. This might be hobbit specific
> however. In my original email, I stated I was sending the data from my
> script like:
> 
> home/monitor/bb/bin/bb 1.2.3.4 "status iron1-mgmt.Memoryutil green
> Memoryutil : 11"
> 
> This is not the correct way to do this hobbit-wise. You need to put a
> \n in between the color status and the data you're pushing via ncv.
> That is:
> 
> home/monitor/bb/bin/bb 1.2.3.4 "status iron1-mgmt.Memoryutil
> green\nMemoryutil : 11"
> 
> Perhaps it's just my interpretation, but I think we should reword the
> documentation to explicitly say we do not need to do any
> --extra-script or --extra-tests if one is using ncv.
> 
> Finally, I perused a lot of the man pages and code for the past few
> hours, and only found one error - and that was a spelling error. In
> ~hobbit/server/etc/hobbitgraph.cfg, temperature is misspelled:
> # comment out the [tempeature] section above, and
> 
> I'm now using ncv for collecting 8 datapoints and it appears to
> collect and graph data flawlessly. Thanks for the solid implementation
> Henrik.
> 
> -Dan
> 
> On 11/11/05, Dan Vande More <bigdan at gmail.com> wrote:
> 
>>Sorry for the hasty followup, but does anyone have any advice?
>>
>>Thanks
>>
>>
>>On 11/10/05, Dan Vande More <bigdan at gmail.com> wrote:
>>
>>>Hello All,
>>>
>>>I've read every post on the list, but still cannot figure out why I
>>>can't get rrds to appear.
>>>
>>>I've written a custom script that does something like:
>>>
>>>/home/monitor/bb/bin/bb 1.2.3.4 "status iron1-mgmt.Memoryutil green
>>>Memoryutil : 11"
>>>
>>>On 1.2.3.4 (server), my hobbitserver.cfg has this:
>>>
>>>TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,Memoryutil=ncv"
>>>
>>>The reason the test is memoryutil is because it's memory utilization
>>>gotta via snmp for an ironport device.
>>>
>>>My interpretation of the hobbitd_rrd.8 page, and this post:
>>>http://www.hswn.dk/hobbiton/2005/06/msg00261.html
>>>gives me reason to believe that I don't have to do anything but have a
>>>script pass bb a "$test (=|:) value" value, and tell TEST2RRD
>>>"$test=ncv", and I'd be graphing in no time. However, my
>>>~hobbit/rrd/$hostname/ still doesn't have a $test.rrd.
>>>
>>>Am I missing something? Doing something wrong? Assuming some things I
>>>shouldn't be? Anyone have the ncv stuff working?
>>>
>>>Thanks
>>>
>>>Dan
>>>
>>
> 
> 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



More information about the Xymon mailing list