Hi All,

I run a Nagios 2.6 installation and have a custom notification script for 
sending out SMSes.

A common complaint I have from people on-call is the fact they receive warnings 
for servers that reach warning level for storage.

What I'd like to do is customise my notification script so that it only sends 
storage warnings (and their accompanying recoveries) as SMSes during business 
hours only.

Effectively, I'd like it to do the following (only for services of type 
"STORAGE"):

OK -> WARNING: No Alert
WARNING -> OK: No Alert

WARNING -> CRITICAL: Alert
CRITICAL -> WARNING: Alert

OK -> CRITICAL: Alert
CRITICAL -> OK: Alert

I have no problem implementing this functionality, provided I can work out what 
the previous state is. Is there a way through the Nagios API that would allow 
me to query what the previous state was before the current level, or would I be 
better off tracking this through the notification script?

Thanks,
Jonathan
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to