Notifications not sent out from static configuration host
Posted: Mon Oct 15, 2012 9:19 am
Notifications not sent out from static configuration host.
I have included one host and contact definitions via static file but notifications are not sent out for this host. The nagiosql-registered hosts are able to send out notifications (email). The notifications log is showing that the notification went out. The contact's email address is a valid and routable email.
Please help.
define contactgroup {
contactgroup_name network_admins
alias network_admins
members NetworkDevicesDen
}
define contact {
contact_name NetworkDevicesDen
alias NetworkDevicesDen
host_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands xi_host_notification_handler
email [email protected]
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}
define host{
name default-template
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
flap_detection_options o,d,u
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
parents someparent
register 0
}
define host {
use default-template
host_name 10-8-24-1.network.abc.edu
alias alias
address 10.8.24.1
check_command check-host-alive
max_check_attempts 3
checks_enabled 1
notification_interval 5
initial_state o
contact_groups network_admins
register 1
}
I have included one host and contact definitions via static file but notifications are not sent out for this host. The nagiosql-registered hosts are able to send out notifications (email). The notifications log is showing that the notification went out. The contact's email address is a valid and routable email.
Please help.
define contactgroup {
contactgroup_name network_admins
alias network_admins
members NetworkDevicesDen
}
define contact {
contact_name NetworkDevicesDen
alias NetworkDevicesDen
host_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands xi_host_notification_handler
email [email protected]
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}
define host{
name default-template
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
flap_detection_options o,d,u
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
parents someparent
register 0
}
define host {
use default-template
host_name 10-8-24-1.network.abc.edu
alias alias
address 10.8.24.1
check_command check-host-alive
max_check_attempts 3
checks_enabled 1
notification_interval 5
initial_state o
contact_groups network_admins
register 1
}