I have enabled notifications globally.
Code: Select all
## /usr/local/nagios/etc/nagios.cfg
...
enable_notifications=1
# ...
Code: Select all
# /usr/local/nagios/etc/static/templates/host.cfg
define host {
name ctv-server
use linux-server
contact_groups ctvadmins
notifications_enabled 1
register 0
}
define service {
name ctv-service
use local-service
contact_groups ctvadmins
notifications_enabled 1
register 0
}
Code: Select all
define contact {
contact_name ctvadmin
alias C TV Administrator
host_notification_period ctvadmin_notification_times
service_notification_period ctvadmin_notification_times
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
email [email protected]
use xi_contact_generic
}
define contactgroup {
contactgroup_name ctvadmins
alias C TV Administrators
members ctvadmin
}
Yet, I do not see notifications issued when a host or a service goes down.
I see the following messages in /usr/local/nagios/var/nagios/log:
Code: Select all
# tail -f /usr/local/nagios/var/nagios.log
//...
[1370120018] SERVICE NOTIFICATION: ctvadmin;ctv-xjabprd-2;Jabber CM1;CRITICAL;notify-service-by-email;CRITICAL - Socket timeout after 10 seconds
How do I troubleshoot this?
thanks