[hobbit] NCV problems still

Henrik Stoerner henrik at hswn.dk
Fri Jan 6 08:14:02 CET 2006

On Fri, Jan 06, 2006 at 02:39:25PM +0800, Wild, Phil wrote:
> Fy first status message has a DEV line and a RUN line but it seems to
> only process the DEV line. It has me stumped. I'm almost ready to give
> up on the NCV functionality and write my own parsing script.

I have absolutely no problems when I reproduce your setup. I've done it
on the Hobbit demo site at http://www.hswn.dk/hobbit/servers/ - look at
the bottom of the page for the "osiris.hswn.dk" host.

All of the config. files are online, you can see them via the "Demo
Site" menu item. The changes I made were:

1) Add "pro4=ncv" to TEST2RRD in hobbitserver.cfg

2) Add "pro4" (and "ncv" if it's not there) to GRAPHS in hobbitserver.cfg

3) Add a new setting NCV_pro4="DEV:GAUGE,RUN:GAUGE" to hobbitserver.cfg

4) Kill the hobbitd_rrd processes so they restart and pick up the new
   hobbitserver.cfg settings

5) Define the [pro4] setting in hobbitgraph.cfg
        TITLE Pro4 graphs
        YAXIS Seconds
        LINE2:dev#00CCCC:DEV time
        LINE2:run#FF0000:RUN time
        GPRINT:dev:LAST:DEV time \: %5.1lf%s (cur)
        GPRINT:dev:MAX: \: %5.1lf%s (max)
        GPRINT:dev:MIN: \: %5.1lf%s (min)
        GPRINT:dev:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:run:LAST:RUN time \: %5.1lf%s (cur)
        GPRINT:run:MAX: \: %5.1lf%s (max)
        GPRINT:run:MIN: \: %5.1lf%s (min)
        GPRINT:run:AVERAGE: \: %5.1lf%s (avg)\n

6) Start sending status messages for the "pro4" status using this
   script (dummy data, cut-and-pasted from your mails):

   $BB "status osiris,hswn.dk.pro4 green `date`
   DEV : 57
   RUN : 20
   exit 0


More information about the Xymon mailing list