[Nagios-devel] Bug in nagiostat (passive service check latency)

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

[Nagios-devel] Bug in nagiostat (passive service check latency)

Post by Guest »

Hi Ethan, hi list,

i have found a bug in nagiostats in the nagios version 3.0rc1. I become no value for the option
AVGPSVSVCLAT! In the file nagiostat.c i found follow code:

nagiostats.c:
/* passive service check latency */
else if(!strcmp(temp_ptr,"PSVACTSVCLAT"))

printf("%d%s",(int)(min_passive_service_latency*1000),mrtg_delimiter);
else if(!strcmp(temp_ptr,"PSVACTSVCLAT"))

printf("%d%s",(int)(max_passive_service_latency*1000),mrtg_delimiter);
else if(!strcmp(temp_ptr,"PSVACTSVCLAT"))

printf("%d%s",(int)(average_passive_service_latency*1000),mrtg_delimiter);

My solution:
/* passive service check latency */
else if(!strcmp(temp_ptr,"MINPSVSVCLAT"))

printf("%d%s",(int)(min_passive_service_latency*1000),mrtg_delimiter);
else if(!strcmp(temp_ptr,"MAXPSVSVCLAT"))

printf("%d%s",(int)(max_passive_service_latency*1000),mrtg_delimiter);
else if(!strcmp(temp_ptr,"AVGPSVSVCLAT"))

printf("%d%s",(int)(average_passive_service_latency*1000),mrtg_delimiter);

I am not very good in C and i hpe its right

Bye
Michael
_________________________________________________________________________
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten!
Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114






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