problems with performance of cgi's

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Fri Feb 13 13:46:40 CET 2004

Dear Sir,

I am writing to thank you for your letter and say,

On Fri, Feb 13, 2004 at 10:26:02AM +0100, Marcus Hildenbrand wrote:
> Hi,
> we are currently monitoring 2100 Hosts with 9900 active service checks 
> with Nagios 1.2. The main problem of that large number of monitored 
> hosts are the cgi's. Most of the cgi's need more than 30 seconds to 
> load. The current installation is running on a server with 4x700 MHz 
> Pentium 3 CPU's with 4 GB RAM running SuSE SLES 7. The check latency is 
> normally under 2 seconds and the cpu idle time is about 33%. So the 
> scheduling of the active service checks and the overall CPU performance 
> seems to be no problem.

One stupid suggestion is that if you have hacking/coding resources you
might want to have the CGIs deliver gzipped output; this may be doable
by Apache or an Apache module.

The ntop project does this (not with Apache) and the performance is very
crisp, even on very underpowered ntop hosts.

> Will the cgi's be faster in Nagios 2.0 for large configurations?

This change in 2.0 is aimed (IIRC) at boosting performance

'3. Daniel Drown's chained hash patch for object search functions'

- replacing linked list searches for objects with hash lookups.

If I understand corectly, this is already in the 2.0 alpha so you might
give it a pop on your P4 box.

  .. snip ..
> Any hints how to solve this problems,

Apart from the tuning info in the docs

There have been a few letters about the performance of enormous Nag
installations (mainly about check latency IIRC); you may find that the
archives have something to offer.

> Many thanks
> Marcus

Stanley Hopcroft

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.

SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!

More information about the Developers mailing list