Page 1 of 1

check if result is both to high or to low?

Posted: Wed Dec 23, 2015 2:36 pm
by jriker1
If I want to use the check_snmp check in order to see if my UPS is providing the right voltage, was thinking I need to check if it's to high AND or to low. Is there a way to do both short of having to checks run? One that checks if it's below some thresholds and one that checks if it's above?

Thanks.

JR

Re: check if result is both to high or to low?

Posted: Wed Dec 23, 2015 2:43 pm
by Box293
That is possible, read the threshold standards here:

https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT

Re: check if result is both to high or to low?

Posted: Wed Dec 23, 2015 4:05 pm
by jriker1
Helpful article thanks.

Set:

-w116:125 -c109:130

So if voltage goes bleow 116 or above 125 I get a warning and below 109 or above 130 it goes critical.

Thanks.

JR

Re: check if result is both to high or to low?

Posted: Wed Dec 23, 2015 4:12 pm
by hsmith
Is there anything else we can do to help you with this one?

Re: check if result is both to high or to low?

Posted: Wed Dec 23, 2015 9:29 pm
by jriker1
Nope. Close away