Nofification Anomaly

Andrew Thompson andrew at fulgent.co.uk
Fri Jan 13 11:37:20 CET 2012


Hi all,

I have a strange notification problem that I cant seem to get to the bottom of.

In a nut shell I am using escalations to limit the amount of notifications for any given host to 5.

Host Down notification 1 comes via form of Email and Text

Then I have Not 2-5 if down to come via email

If it recovers between 2-5 it will email and text.

The email works fine in all scenarios but I have a text message issue in the sense it doesn't send out a text message if notification 2 is a recovery text! Nagios doesn't even seem to run the notify by SMS command!
Any other notification number is fine but just not notification number 2 being a recovery text!

I know above is a bit gargled so an example of my following notification escalations may make it a bit clearer.




#############################################################
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#                                                                                                                                                            #
# HOST ESCALATIONS                                                                                                                   #
#                                                                                                                                                            #
# Use escalations to limit the amount of email and text message alerts that        #
# are recieved for hosts in a problem state                                                                         #
#                                                                                                                                                            #
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#############################################################



########################################################
#                                                            OFFICE SERVERS                                                   #
########################################################

define hostescalation{
    host_name                    HOST
    first_notification            1
    last_notification            4
    notification_interval      15
    contact_groups            servers email
    escalation_options        d,r
    }

define hostescalation{
    host_name                    HOST
    first_notification             5
    last_notification              0
    notification_interval        0
    contact_groups            servers email
    escalation_options        d,r
    }

define hostescalation{
    host_name                    HOST
    first_notification             1
    last_notification              1
    notification_interval        15
    contact_groups            servers sms
    escalation_options        d
    }

define hostescalation{
    host_name                    HOST
    first_notification            2
    last_notification            4
    notification_interval      15
    contact_groups            servers sms
    escalation_options        r
    }

define hostescalation{
    host_name                   HOST
    first_notification            5
    last_notification            0
    notification_interval      0
    contact_groups            servers sms
    escalation_options        r
    }


#############################################################
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#                                                                                                                                                            #
# SERVICE ESCALATIONS                                                                                                              #
#                                                                                                                                                            #
# Use escalations to limit the amount of email and text message alerts that        #
# are recieved for services in a problem state                                                                    #
#                                                                                                                                                            #
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#############################################################



###################################################
#                                            OFFICE SERVERS                                                      #
###################################################

define serviceescalation{
    host_name                    HOST
    service_description        PING
    first_notification            1
    last_notification            4
    notification_interval      15
    contact_groups            servers email
    escalation_options        c,r
    }

define serviceescalation{
    host_name                    HOST
    service_description        PING
    first_notification            5
    last_notification            0
    notification_interval      0
    contact_groups            servers email
    escalation_options        c,r
    }

define serviceescalation{
    host_name                    HOST
    service_description        PING
    first_notification            1
    last_notification            1
    notification_interval      15
    contact_groups            servers sms
    escalation_options        c
    }

define serviceescalation{
    host_name                    HOST
    service_description        PING
    first_notification            2
    last_notification            4
    notification_interval      15
    contact_groups            servers sms
    escalation_options        r
    }

define serviceescalation{
    host_name                    HOST
    service_description        PING
    first_notification            5
    last_notification            0
    notification_interval      0
    contact_groups            servers sms
    escalation_options        r
    }

Notification 1 - DOWN - Text and Email ok
Notification 2 - DOWN - Email ok. UP - Email ok, NO text
Notification 3 - DOWN - Email ok. UP - Email and text ok
Notification 4 - DOWN - Email ok. UP - Email and text ok
Notification 5 - DOWN - Email ok. UP - Email and text ok
Notification X - UP - Email and text ok

I have these escalations in place so I only receive a text message for the 1st notification to say a host is down and then I only want another text when the host recovers.

A visual of the notifications from the Nagios web GUI can be found at this link

http://dl.dropbox.com/u/895609/New%20Nagios%20host%20output.doc

The numbers represent what I am above referring to as Notification 1, notification2 etc etc

It does this to all of my hosts that I monitor (86 currently)

Anybody any idea as to why if the second notification is a recovery it Nagios refuses to run the notify by text command?

Cheers











-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120113/b49844f9/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
-------------- next part --------------
_______________________________________________
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