[Nagiosplug-devel] N::P feature request

Thomas Guyot-Sionnest thomas at zango.com
Wed Nov 28 21:50:57 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Yesterday I just realized that on timeouts all N::P plugins return
UNKNOWN on timeouts. While it's ok for some of them, I have plugins that
must return CRITICAL on timeouts.

It's easy to add a signal handler to overcome this, but it would be nice
  to have a parameter in Nagios::Plugin->new to tell which state
timeouts should get. I don't have much knowledge of Perl modules so I
doubt I'd be able to do this.


BTW at lib/Nagios/Plugin/Getopt.pm:428 (sub getopts(), ALRM signal
handler) these's a substitute to remove the check_ string from the
plugin name, however:

1. It doesn't work because the name is uc()'ed first
2. nagios_exit don't strip the check_ either

Would it be possible to use nagios_exit instead? That would guarantee
consistency. Otherwise that line can simply be removed.

Thanks

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTdSx6dZ+Kt5BchYRAhPVAJ4+DBXNpjVGJ2vx/5OVPhwA6Z6NJgCfbU6d
uVcewqGNYMW8Fx1rg0yW7Bg=
=c3XC
-----END PGP SIGNATURE-----




More information about the Devel mailing list