From: Ben C. <BCl...@pe...> - 2004-11-23 09:32:22
|
Vanderveken, Jan wrote: > Ben, > > Thanks for the quick response. Thing is, I posted this to the nagios list > before and they told me to post here :-) I just posted my self and got a good answer that the problem is not nagios 1.2. :) > Yes I use the file method of writing data. My gut feeling is that it has > something to do with the perfparse_nagios_command.pl script. If I see it > correctly, this script processes the output of the nagios checks and writes > it to the perfdata-service.log file, right? Lets try it manually. This is the command string you are using? $USER2$/bin/perfparse_nagios_command.pl $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" $ perl perfparse_nagios_command.pl /tmp/test "1101131232" "rlswas1c" "CPU load" "CPU Load 0% (5 min average) OK" "'5 min avg Load'=0%;50;75;0;100" No, I get the correct output: 1101131232 rlswas1c CPU load CPU Load 0% (5 min average) OK '5 min avg Load'=0%;50;75;0;100 If you have the time, I would be very interested in knowing if you get the same problem using 'Method 1': http://perfparse.sourceforge.net/docs.php#id265256 Regards, Ben. > > Jan Van der Veken > > -----Original Message----- > From: Ben Clewett [mailto:BCl...@pe...] > Sent: dinsdag 23 november 2004 9:59 > To: Vanderveken, Jan > Cc: 'per...@li...' > Subject: Re: [Perfparse-users] parsing of performance data > > > Jan, > > If the single quotes are not present in the serviceperf.log then this is > a bug with Nagios and should be reported to the nagios developers list. > > I guess you are using the 'file' method of writing data from Nagios? > The bug may not be present if you try another method of exporting the > data. See the documentation: > > http://perfparse.sourceforge.net/docs.php > > I would be interested in knowing from any other members whether they > have this problem with any methods? > > Kind regards, > > Ben Clewett. > > > Vanderveken, Jan wrote: > > >>I'm having the following problem with Nagios in combination with the >>perfparse tool: >> >>When a certain check generates performance data with space characters in > > the > >>metric with single quotes around them, the single quotes *disappear* when >>the information is written to the perfdata-service.log file. As a result, >>the performance data gets parsed incorrectly by perfparse. >> >>For example, if I do the following check manually: >>$ check_nt -H rlswas1c -v CPULOAD -l 5,50,90 >>The result is something like: >>CPU Load 0% (5 min average) |'5 min avg Load'=0%;50;90;0;100 >>Notice the single quotes around '5 min avg Load'. >> >>However, if I let Nagios do the check, the following data appears in the >>perfdata-service.log file: >>1101131232 rlswas1c CPU load CPU Load 0% (5 min > > average) > >>OK 5 min avg Load=0%;50;75;0;100 >>Notice that there are NO single quotes around '5 min avg Load'. >> >>Does anyone have an idea where the quotes are being dropped and what I can >>do about it? >> >>I'm using: >>Nagios 1.2 >>PerfParse 0.103.1 >>A recent CVS snapshot of Nagios-plugins >> >>TIA, >>Jan Van der Veken >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://productguide.itmanagersjournal.com/ >>_______________________________________________ >>Perfparse-users mailing list >>Per...@li... >>https://lists.sourceforge.net/lists/listinfo/perfparse-users >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |