Re: AW: [Nagios-devel] Possible bug in performace data

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: AW: [Nagios-devel] Possible bug in performace data

Post by Guest »

Ben Clewett wrote:
> Thanks for the second opinion. None of my plugins have 'quotes'. :)
>=20
> You are using the --with-file-perfdata make option?
>=20

I don't use perfdata at all. I was just mentioning a possible design=20
thingie which may or may not be true and may or may not work.

> Cheers,
>=20
> Ben
>=20
> Husch Andreas wrote:
>=20
>> Hi,
>> this works fine for me, my output in the serviceperf.log file looks=20
>> like this:
>> 1099034929 tizian CPULOAD CPU Load 36% (5 min average) =20
>> OK '5 min avg Load'=3D36%;70;90;0;100
>>
>> I'm using Nagios 1.2 too.
>>
>> Regards
>> Andreas
>>
>> -----Urspr=FCngliche Nachricht-----
>> Von: [email protected]=20
>> [mailto:[email protected]] Im Auftrag von Ben=20
>> Clewett
>> Gesendet: Dienstag, 23. November 2004 10:02
>> An: [email protected]
>> Betreff: [Nagios-devel] Possible bug in performace data
>>
>>
>> Dear members, I have has the following possible bug reported to me. =20
>> Can anybody clarify this? Regards, Ben.
>>
>> I'm having the following problem with Nagios in combination with the=20
>> perfparse tool:
>>
>> When a certain check generates performance data with space characters=20
>> in the metric with single quotes around them, the single quotes=20
>> *disappear* when the information is written to the=20
>> perfdata-service.log file. As a result, the performance data gets=20
>> 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=20
>> like:
>> CPU Load 0% (5 min average) |'5 min avg Load'=3D0%;50;90;0;100 Notice=20
>> the single quotes around '5 min avg Load'.
>>
>> However, if I let Nagios do the check, the following data appears in=20
>> the perfdata-service.log file:
>> 1101131232 rlswas1c CPU load CPU Load 0% (5 min=20
>> average)
>> OK 5 min avg Load=3D0%;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=
=20
>> can do about it?
>>
>> I'm using:
>> Nagios 1.2
>> PerfParse 0.103.1
>> A recent CVS snapshot of Nagios-plugins
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide Read honest & candid=20
>> reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.=20
>> http://productguide.itmanagersjournal.com/
>> _______________________________________________
>> Nagios-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/lis ... gios-devel
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real user=
s.
>> Discover which products truly live up to the hype. Start reading now.=20
>> http://productguide.itmanagersjournal.com/
>> _______________________________________________
>> Nagios-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/lis ... gios-devel
>>
>=20
>=20
>=20
> -------------------------------------------------------
> 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.=20
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>=20
>=20

--=20
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Lead Developer





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked