-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/09/07 01:16 PM, zack kenton wrote: > Hi list > > Does anyone have an idea why I would get (Return code of 9 is out of bounds) > with my perl plugin. I know of 123 and 127 numbers, but why would a 9 return?
I can't give you any details without seeing your script, but normally it should evaluate the status of whatever is being checked and return 0 for OK, 1 for WARING and 2 for CRITICAL. If you're running external programs then your script should either parse STDOUT/ERR or check the return code (or both) to evaluate the status and return its own value. Don't forget to timeout using SIGALARM to avoid stale processes. FYI there's a Nagios::Plugin CPAN module that can help writing Nagios plugins in Perl. You should see check_stuff.pl (comes in the Module tarball) for examples. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG/Tti6dZ+Kt5BchYRAtsBAKDjG2XqBcKd3A+k/AwxWW7B7XWIfQCg7jm1 MjKPOIM1bCy5XaZkSGRME8A= =t2al -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
