Page 1 of 3

email alert for Service Escalation not working

Posted: Fri Apr 24, 2015 12:28 pm
by bosecorp
I am not receiving any service escalation alert

I have a service escalation that is associated to couple host with all the respective services. even though I have an active alert in nagios, I am not receiving any alert

Re: email alert for Service Escalation not working

Posted: Fri Apr 24, 2015 1:08 pm
by jolson
This document explains escalations, for your reference: http://assets.nagios.com/downloads/nagi ... ations.pdf

Would you please show us your escalation definitions?

Code: Select all

cat /usr/local/nagios/etc/serviceescalations.cfg

Code: Select all

cat /usr/local/nagios/etc/hostescalations.cfg

Re: email alert for Service Escalation not working

Posted: Fri Apr 24, 2015 2:14 pm
by bosecorp
Host escalation is fine. just service escalation

below is the info you ask for. I did followed the document. that is the document that I used to set this up

# cat /usr/local/nagios/etc/serviceescalations.cfg
###############################################################################
#
# Service escalations configuration file
#
# Created by: Nagios Core Config Manager 2.2.2
# Date: 2015-04-24 13:32:27
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define serviceescalation {
host_name crgnas1.bose.com
service_description Check /vol/vol0,Check /vol/vol_Home1,Check /vol/vol_Share1,Check /vol/vol_Share2,Check Power Supply State,Check Power Supply State,Check Raid State,Check Temperature,Check Volumes,Ping
contact_groups CIS-ISCG-Tier1
first_notification 5
last_notification 120
notification_interval 30
escalation_period xi_timeperiod_24x7
escalation_options w,c,r,
}

define serviceescalation {
host_name *
hostgroup_name *
service_description *
contacts dcops
first_notification 15
last_notification 120
notification_interval 30
escalation_period xi_timeperiod_24x7
escalation_options w,u,c,r,
}

###############################################################################
#
# Service escalations configuration file
#
# END OF FILE
#
###############################################################################

Re: email alert for Service Escalation not working

Posted: Fri Apr 24, 2015 2:30 pm
by jolson
first_notification 5
Can you verify that at least five notifications have been sent out from one of your defined services? That is when CIS-ISCG-Tier1 should get an escalation notification.
2015-04-24 14_27_56-Nagios XI.png

Re: email alert for Service Escalation not working

Posted: Sat Apr 25, 2015 9:03 pm
by bosecorp
Yes, i do see the notifications

Re: email alert for Service Escalation not working

Posted: Mon Apr 27, 2015 11:06 am
by lmiltchev
Let's clarify - you have five "regular" notifications sent out for these services but "escalated" notifications are not being sent afterwords, correct?

Can you show us the "State History" and "Notifications" reports for one of the "problem" services for the appropriate time period?

Re: email alert for Service Escalation not working

Posted: Mon Apr 27, 2015 12:18 pm
by bosecorp
I am not utilizing regular notifications.

instead I am only using escalation. and escalation notifications are not being sent out

Also I just noticed that one particular service went down 23 min ago and there is not notification at all

Re: email alert for Service Escalation not working

Posted: Mon Apr 27, 2015 1:05 pm
by tmcdonald
What do you have defined for a regular notification then? Escalations rely on normal notifications being present, since each escalation takes over once a certain number of notifications have gone out.

Re: email alert for Service Escalation not working

Posted: Mon Apr 27, 2015 1:12 pm
by bosecorp
small detail. Upss

so you mean to say that now I have to go and enable notification in each service? or can i do it in the service template

Re: email alert for Service Escalation not working

Posted: Mon Apr 27, 2015 1:13 pm
by tmcdonald
You can do it in the template or on a per-object basis, but yes you do need to have notifications enabled before escalations will work.