Page 1 of 1

Monitoring Thresholds

Posted: Tue Sep 02, 2014 7:23 am
by AMacintosh
Is there a way to introduce a third threshold when monitoring CPU,MEM,DISK, etc...?

For example I want Warning, High, Critical?

Thanks,

Re: Monitoring Thresholds

Posted: Tue Sep 02, 2014 10:37 am
by tmcdonald
Nagios doesn't recognize a "High" state, only OK, Warning, Critical, and Unknown. You can do basically anything you want with plugins threshold-wise, as long as they stick to the 0/1/2/3 exit codes for the aforementioned states.

Re: Monitoring Thresholds

Posted: Wed Sep 03, 2014 10:55 am
by AMacintosh
Thanks for the reply. Can you give an example of how I would use the cpu plugin for example to have an additional threshold?

Re: Monitoring Thresholds

Posted: Wed Sep 03, 2014 11:01 am
by tmcdonald
I guess I should clarify my last statement. A plugin you write yourself can have whatever arguments you want it to have, but Nagios still only uses OK/Warn/Crit/Unknown states. The standard Nagios plugins won't have a "High" threshold and it wouldn't make sense for them to do so since it would need to either be lumped into Warn or Crit or ignored entirely.

Re: Monitoring Thresholds

Posted: Wed Sep 03, 2014 2:28 pm
by AMacintosh
Thanks for the clarifications. Makes sense!