Page 1 of 1

Alert warnings & critical thresholds primer?

Posted: Tue Jul 14, 2015 4:06 pm
by jb60606
Is there any document out there that can explain the Warning and Critical options and values used by NLS alerts? Particularly for someone with no experience setting up alerts with another Nagios product (at least, not in about a decade or so).

A value of :0 for Warning and :0 for Critical coupled with a check_interval half the time of the look_back period gets the job done and keeps email-spamming at bay. Though I know you can be more creative and intelligent with these alerts. I tried following some brief 'tutorials' on the web for general 'Nagios' alerting, though with no success.

thanks

P.S. I can't recall specifically, but it was probably dumb luck that I arrived at a :0 :0.

Re: Alert warnings & critical thresholds primer?

Posted: Tue Jul 14, 2015 4:30 pm
by jolson
All of the options for thresholds can be viewed in the 'Nagios Plugins' documentation, the specific page of interest is here: https://nagios-plugins.org/doc/guidelines.html

Please see 'Table 3. Example ranges' - this will explain exactly how you can define your thresholds.
Range definition | Generate an alert if x...
10 < 0 or > 10, (outside the range of {0 .. 10})
10: < 10, (outside {10 .. ∞})
~:10 > 10, (outside the range of {-∞ .. 10})
10:20 < 10 or > 20, (outside the range of {10 .. 20})
@10:20 ≥ 10 and ≤ 20, (inside the range of {10 .. 20})

Re: Alert warnings & critical thresholds primer?

Posted: Tue Jul 14, 2015 4:54 pm
by jb60606
solved.
Thanks again.

Re: Alert warnings & critical thresholds primer?

Posted: Tue Jul 14, 2015 6:12 pm
by jolson
No problem - I'll close the thread out.