Escalation Issues
Paul Goslin
pgoslin at amtrex.com
Sat Oct 29 00:46:21 CEST 2005
I was able to create this on another server, but I had to change the server and the O/S.
I am using RHEL ES 3 v6 for Nagios 1.2 with plugins 1.4. (I was using RH 7.3 w/1.2 and 1.4 plugins)
I am trying to create a warning escalation and I have done the RTFM process 4 or 5 times and I am only getting the first notification that is all.
It is probably something really minor. Thanks in adnvance for finding my tiny little issue that I can't find.
Thanks,
Paul
(scripts below)
This is the part of the misccommands.cfg that worked before
# 'host-notify-by-email1' command definition NOTICE
define command{
command_name host-notify-by-email1
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: is $HOSTSTATE$ \nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n\n\n$OUTPUT$" | /bin/mail -s "NOTICE: $HOSTALIAS$ $SERVICEDESC$ ($HOSTNAME$ at $HOSTADDRESS$), is inaccessible ($SHORTDATETIME$)" $CONTACTEMAIL$.
}
# 'host-notify-by-email2' command definition WARNING
define command{
command_name host-notify-by-email2
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n\n\n$OUTPUT$" | /bin/mail -s "WARNING: $HOSTALIAS$ $SERVICEDESC$ ($HOSTNAME$ at $HOSTADDRESS$), is inaccessible ($SHORTDATETIME$)" $CONTACTEMAIL$.
}
# 'host-notify-by-email3' command definition ALERT
define command{
command_name host-notify-by-email3
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n\n\n$OUTPUT$" | /bin/mail -s "ALERT: $HOSTALIAS$ $SERVICEDESC$ ($HOSTNAME$ at $HOSTADDRESS$), is inaccessible ($SHORTDATETIME$)" $CONTACTEMAIL$.
}
This also worked before
# Service definition
define service{
use generic-service ; Name of service template to use
host_name ico01sec01
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nagios
notification_interval 60
notification_period 24x7
notification_options w,u,c
check_command check_http
}
host_name ico01sec01
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nagios2
notification_interval 60
notification_period 24x7
notification_options w,u,c
check_command check_http
}
host_name ico01sec01
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nagios3
notification_interval 60
notification_period 24x7
notification_options w,u,c
check_command check_http
}
define serviceescalation{
host_name ico01sec01
service_description HTTP
first_notification 1
last_notification 3
notification_interval 13
contact_groups nagios
}
define serviceescalation{
host_name ico01sec01
service_description HTTP
first_notification 4
last_notification 7
notification_interval 13
contact_groups nagios2
}
define serviceescalation{
host_name ico01sec01
service_description HTTP
first_notification 8
last_notification 20
notification_interval 13
contact_groups nagios3
}
################################################################################
# HOST ESCALATION DEFINITIONS
#
# SYNTAX:
#
################################################################################
# Hostgroup 'NOC' escalation definition
define hostgroupescalation{
hostgroup_name nagios
first_notification 1
last_notification 6
contact_groups nagios
notification_interval 13
}
# Hostgroup 'NOC2' escalation definition
define hostgroupescalation{
hostgroup_name nagios
first_notification 7
last_notification 10
contact_groups nagios2
notification_interval 13
}
# Hostgroup 'NOC3' escalation definition
define hostgroupescalation{
hostgroup_name nagios
first_notification 11
last_notification 20
contact_groups nagios3
notification_interval 13
}
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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