Re: [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

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

Post by Guest »


Michael Lübben wrote:
> 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
> _________________________________________________________________________

Thanks Michael - a patch will be in CVS shortly...


Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org





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