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:
Add "pro4=ncv" to TEST2RRD in hobbitserver.cfg
Add "pro4" (and "ncv" if it's not there) to GRAPHS in hobbitserver.cfg
Add a new setting NCV_pro4="DEV:GAUGE,RUN:GAUGE" to hobbitserver.cfg
Kill the hobbitd_rrd processes so they restart and pick up the new hobbitserver.cfg settings
Define the [pro4] setting in hobbitgraph.cfg [pro4] TITLE Pro4 graphs YAXIS Seconds DEF:dev=pro4.rrd:DEV:AVERAGE DEF:run=pro4.rrd:RUN:AVERAGE LINE2:dev#00CCCC:DEV time LINE2:run#FF0000:RUN time COMMENT:\n 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
Start sending status messages for the "pro4" status using this script (dummy data, cut-and-pasted from your mails):
#!/bin/sh $BB 172.16.10.2 "status osiris,hswn.dk.pro4 green
dateDEV : 57 RUN : 20 " exit 0
Regards, Henrik