Page 1 of 1

Re: [Nagios-devel] patch: speed up status.cgi

Posted: Thu Sep 23, 2004 6:29 am
by Guest
are you sure that was against the latest cvs?

I was able to apply it manually, but the first and third files has all
hunks fail....

On Wed, 2004-09-22 at 22:37 -0400, Matthew Kent wrote:
> I took a look at some of the functions Jason Martin mentioned a while
> back when he profiled status.cgi. I found that add_service_status does
> some unnecessary sorting when reading service status entries back for
> output. From what I can tell, the output of status.dat is already sorted
> alphabetically by hostname and service so I can't see the need to
> resort.
>
> Striping that out took displaying 18,000 services from 50 seconds to 20.
> For 4500 services it was the difference between 5 and 2 seconds.
>
> Patch included against latest cvs.






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