notification problem
Eric Blumenau
ericblumenau at techtvcorp.com
Wed Aug 13 23:28:07 CEST 2003
Greetings all,
For a particular service, I have Nagios set up to notify on
warn,unknown,critical and recoveries (w,u,c,r). This service's contact
group emails and pages our administrators. Well, my problem is that
emails and pages go out when the service does a hard critical but only
sends emails on a hard recovery. Here are the service notifications
from the web page (a critical at 10:14:44, an ok at 1:17:34 and another
critical at 10:34:45):
adm1 check CRITICAL 08-13-2003 10:34:45 email_unix_admins
mail_service Socket timeout after 10 seconds
adm1 check CRITICAL 08-13-2003 10:34:44 page_unix_admins
page_service Socket timeout after 10 seconds
adm1 check OK 08-13-2003 10:17:34 email_unix_admins mail_service
HTTP ok: HTTP/1.1 302 Found - 0 second response time
adm1 check CRITICAL 08-13-2003 10:14:44 email_unix_admins
mail_service Socket timeout after 10 seconds
adm1 check CRITICAL 08-13-2003 10:14:44 page_unix_admins
page_service Socket timeout after 10 seconds
Any ideas on how to get pages as well as emails on the OKs? I'm
pasting in snippets of my configs below. Let me know if you need more info.
Thanks,
Eric
############ hosts.cfg #######################
# Generic host definition template
define host{
name 24x7-host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_period 24x7
register 0
}
# 'adm1' host definition
define host {
use 24x7-host
host_name adm1
alias adm1-hme0.XXXXXX.XXXXXX.com
address XX.XXX.X.XX
check_command check-host-alive
max_check_attempts 3
notification_interval 30
notification_options d,u,r
}
############ services.cfg ####################
# Generic service definition template
define service {
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
register 0
}
# 'check_http_host' Service definition
define service {
use generic-service
host_name adm1
service_description HTTP XX.XX.XX.XX
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups defcon5
notification_interval 5
notification_period 24x7
notification_options w,u,c,r
check_command check_http_IP!XX.XX.XX.XX!30!45
}
################################################
########## contacts.cfg ########################
# 'defcon5' contact group definition
define contactgroup {
contactgroup_name defcon5
alias Pages Oncall Admin and Email SA
members email_unix_admins,page_unix_admins
}
# 'email_unix_admins' contact definition
define contact {
contact_name email_unix_admins
alias email UNIX Group
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands mail_service
host_notification_commands mail_host
email XXXXXX at adm1.XXXXXX.XXXXXX.com
pager XXXXXX at adm1.XXXXXX.XXXXXX.com
}
# 'page_unix_admins' contact definition
define contact {
contact_name page_unix_admins
alias page UNIX Group
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c
host_notification_options d,u,r
service_notification_commands page_service
host_notification_commands page_host
email page-XXXXXX at adm1.XXXXXX.XXXXXX.com
pager page-XXXXXX at adm1.XXXXXX.XXXXXX.com
}
##############################################
############ /etc/aliases ####################
unix-XXXXXX: xxx at xxxxxxxxx.com,
xxxxxxxxx at xxxxxxxxxx.com,
xxxxxxxxxxxx at xxxxxxxxxx.com,
xxxxxxxx at xxxxxxxxxx.com
page-XXXXXX: xxxxxxxxxx at page.xxxxx.com,
xxxxxxxxxx at mobile.xxx.net,
xxxxxxxxxx at mobile.xxx.net
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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