Monitoring Thresholds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

Monitoring Thresholds

Post 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,
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring Thresholds

Post 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.
Former Nagios employee
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

Re: Monitoring Thresholds

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring Thresholds

Post 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.
Former Nagios employee
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

Re: Monitoring Thresholds

Post by AMacintosh »

Thanks for the clarifications. Makes sense!
Locked