Elevated alerts

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Fri Jan 9 01:33:30 CET 2009





Grant Lowe <glowe at sbcglobal.net> wrote:

>Hi All,
>
>I'm trying to figure out how an elevated alert would work.  This one isn't
exactly clear to me from the documentation.  So say, I have an alert that
>gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you
get Nagios to send off something say to a pager as well as email?  I think
I >have my setups good now, and I'm seeing states of WARNING, CRITICAL, and
RECOVERY in email, but I'm not sure how to implement these changes.
Thanks!

The easiest thing to do is just to send all alerts to both an email and
pager/phone.  If you want to send warnings to just email addresses, and
then send critical alerts to both the email and pager address for a
particular contact, then one way to do that would be to create two contacts
for the same person.  In the first contact (for warnings) entry, you'd have
something like:

        service_notification_options    w,u,,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email

In the *critical* contact entry, you'd have:

        service_notification_options    u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-epager
        host_notification_commands      host-notify-by-epager
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email

Then you'd make both contacts the member of the same contact group.  In the
above example, when a service goes to warning state, the contact would be
sent an email only.  When the service goes to critical, the contact would
get both an email and a pager/phone alert.  In the above scenario, the
contact would get duplicate emails for unreachable and recovery states, so
you may want to adjust that to your needs.


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
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