How does nagios handle plugin exit not in [0, 1, 2, 3]?

John Rouillard rouilj+nagiosdev at cs.umb.edu
Fri Apr 20 17:38:06 CEST 2007


Hi all:

How does nagios handle plugins that don't exit with an errorcode of 0,
1, 2, or 3?  If the plugin exits with say 127, is the host check logic
triggered?

The reason I ask is that I just fixed ~10 services (that were run
every 3 minutes) that were failing (java was missing from the system),
and the average latency went from 2 minutes to less than 6 seconds
(usually in the .6 range), with the max at 25 seconds. This seems a
huge difference given the fix.

I could almost buy it if each failure triggered a halt to polling and
forced it to do host checks, but even then the magnitude of the change
is a bit unbelievable.

If the failure (w/ exit code 127) would trigger host checking, should
the logic change to do host checking only when the plugin exits with a
status in the [0-3] range since it is an invalid exit code?

I am seeing this with nagios 2.7 on Centos 4.4.

				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list