Different notification types for warnings vs. criticals

Todd Barbera todd_barbera at wgbh.org
Wed Jan 18 23:23:43 CET 2006


Hi,

I'm running Nagios 2.0rc2 on a Solaris 9 server. I want to setup the
notifications so that criticals get sent to our cell phones and warnings get
sent to our e-mail accounts. I did some searching in the archives and I see
that it is possible to get close to this by creating two contacts for each
person, one for critical alerts, and one for warnings. I do see a hole in
this method, however. Since I also want recoveries sent both for criticals
and warnings, I can see that our cell phones will receive both types of
recoveries since Nagios only knows that it is supposed to send c,r
notifications. Now I know that a script can be written, but when I reviewed
the list of macros, I didn't see one for last service state. If there was a
macro of this type, then I could differentiate whether or not the recovery
was from a warning or from a critical and send the appropriate notification
type. Any ideas on this one? Thanks. 

Todd Barbera
Systems Administrator
WGBH Educational Foundation
617 300-3443

WGBH Boston informs, inspires, and entertains millions through public
broadcasting, the Web, and educational multimedia, and access services for
people with disabilities. 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list