check if result is both to high or to low?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

check if result is both to high or to low?

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post by Box293 »

That is possible, read the threshold standards here:

https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

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

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

Is there anything else we can do to help you with this one?
Former Nagios Employee.
me.
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

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

Post by jriker1 »

Nope. Close away
Locked