Help with plugin...

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Dec 31 03:10:50 CET 2008


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

On 30/12/08 05:55 PM, Matt Nelson wrote:
> Up to now most of my checks have used a threshold for warning and
> critical that is say:
> 
> critical if above 20
> warning if above 10
> else ok
> 
> Now I am developing a plugin that will need this for most checks, but
> will also need the oposite:
> 
> ok if > 10
> critical if < 10
> 
> Does anyone have some logic that I can use, preferably in perl for this
> kind of thing?

What are you trying to do? It's hard to understand with so little
information.

Are you using Nagios::Plugin? is so, standard thresholds definitions
should allow what you want with the proper syntax; however if you want
the default meaning for a bare number to change you'll have to create
the thresholds parameter yourself. See:
http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT

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

iD8DBQFJWtSq6dZ+Kt5BchYRAhdOAKD8dgmBfDtjf7ApQWB6Cs2kjub7SwCg07oV
aMQn3zB85mZ80PqKGwH/MLc=
=HYGj
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list