[hobbit] NCV problems still
Hi Tracy,
Thanks for the response. If you are expecting the number of variables to vary from one status message to the next then you need to write your own parsing script and store the variables in individual RRD's ala how the disk rrd's are built.
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.
Cheers
Phil
-----Original Message----- From: Tracy J. Di Marco White [mailto:gendalia at iastate.edu] Sent: Friday, 6 January 2006 2:25 PM To: hobbit at hswn.dk Subject: Re: [hobbit] NCV problems still
In message <AE1139DB2EF72D46BAF3CCEA8AC2A2A14B6FD7 at perntex01.sealcorp.net.au>, "Wild, Phil" writes:
}Hi Hobbit users, } }Is anyone successfully using the NCV functionality to trend statistics }for more than one variable? I can not seem to get two variables into an }RRD and have not been able to find any hints by searching the archives. } }The rrd is created but only ever has the first variable (DEV) in it. } }Is there a way of turning on some form of debugging for the process that }parses the status messages and builds the rrd file? }Everything else seems to work fine including an external larrd script }that builds rrd data for sar. } }My status message looks like this: } }green Fri Jan 6 13:51:36 WST 2006 }DEV : 57 }RUN : 20 } }Thanks
I was only able to get multiple variables into an rrd by deleting the rrd and starting over, then it started saving all of the variables properly. I assume the rrd file can't really grow new variables. I haven't yet figured out how to graph all of them though.
Tracy J. Di Marco White Information Technology Services Iowa State University
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
======================================================= IMPORTANT INFORMATION
This message and any files transmitted with it are confidential and should be read only by those persons to whom it is addressed. If you have received this message in error, please notify us immediately by way of reply. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited.
It is the duty of the recipient to virus scan and otherwise test the information provided before loading on to any computer system. No warranty is given or made by Asgard Wealth Solutions Limited, Asgard Capital Management Limited or SECURITOR Financial Group Limited that the information is free of a virus or any other defect or error and they will not be liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.
Any views expressed in this message are those of the individual sender, except where the sender specifically states they are the views of Asgard Wealth Solutions Limited, Asgard Capital Management Limited or SECURITOR Financial Group Limited, as the case may be.
=======================================================
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
In message <AE1139DB2EF72D46BAF3CCEA8AC2A2A14B6FD8 at perntex01.sealcorp.net.au>, "Wild, Phil" writes: }Hi Tracy, } }Thanks for the response. If you are expecting the number of variables to }vary from one status message to the next then you need to write your own }parsing script and store the variables in individual RRD's ala how the }disk rrd's are built.
I don't actually expect them to change, I just was able to monitor a lot more than I had originally planned, and went from 1 variable to 28. The rrd is fine, I just haven't gotten around to figuring out what to do about graphing.
}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 had to enable debugging to find out why the rrd wouldn't take the new variables, but once I did the errors made it obvious. Do you have error logs? My errors included not having every variable listed correctly in NCV_afs in hobbitserver.cfg, as well as needing to start with a fresh rrd.
-Tracy
}-----Original Message----- }From: Tracy J. Di Marco White [mailto:gendalia at iastate.edu] = } }Sent: Friday, 6 January 2006 2:25 PM }To: hobbit at hswn.dk }Subject: Re: [hobbit] NCV problems still } } }In message }<AE1139DB2EF72D46BAF3CCEA8AC2A2A14B6FD7 at perntex01.sealcorp.net.au>, "Wild, Phil" writes: } }}Hi Hobbit users, }} }}Is anyone successfully using the NCV functionality to trend statistics }}for more than one variable? I can not seem to get two variables into an }}RRD and have not been able to find any hints by searching the archives. }} }}The rrd is created but only ever has the first variable (DEV) in it. }} }}Is there a way of turning on some form of debugging for the process }that }parses the status messages and builds the rrd file? }}Everything else seems to work fine including an external larrd script }}that builds rrd data for sar. }} }}My status message looks like this: }} }}green Fri Jan 6 13:51:36 WST 2006 }}DEV : 57 }}RUN : 20 }} }}Thanks } }I was only able to get multiple variables into an rrd by deleting the }rrd and starting over, then it started saving all of the variables }properly. I assume the rrd file can't really grow new variables. }I haven't yet figured out how to graph all of them though.
Tracy J. Di Marco White Information Technology Services Iowa State University
participants (3)
-
gendalia@iastate.edu
-
henrik@hswn.dk
-
Phil.Wild@asgardwealthsolutions.com.au