Page 1 of 1

Re: [Nagios-devel] Passive check reception in nagios-1.2 does not scale (has anyone already written a patch?)

Posted: Mon Apr 26, 2004 7:22 pm
by Guest
Bj=F8rnar Bj=F8rgum Larsen writes:
> Hello,
>=20
> there seems to be no way of getting nagios-1.2 to process passive service=
checks faster than once per second. In our tests, setting=20
> command_check_interval=3D-1
> produces far worse results than setting=20
> command_check_interval=3D1s
>=20

> Problem: If the above is generally true, given an average command
> length put into the external command file of 120 characters, and a
> FIFO length of 4096 characters, it's impossible for nagios-1.2 to
> handle more than 35 passive checks a second. We want our
> passive-only nagios-1.2 hosts to process at least 100 checks a
> second, and we don't see any other reasons why a nagios host doing
> nothing but receiving and forwarding checks can't do that.

Indeed. If you look through the list archives, you'll see a patch
from David Parrish or myself that addresses that (search for 'hash').

Note that just checking more often is disasterous. For some
very odd reason, nagios accepts the passive check result,
and then forks to give it back again to the main
process!!

The solution is to check very frequently (so as to empty
the FIFO), but only process them once per second.

See the patch for the details.

Michael.





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