rkennedy wrote: please post the contact definition for us to look at.
define contact {
contact_name <Name>
alias <Name >
host_notifications_enabled 1
service_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
service_notification_commands xi_service_notification_handler
can_submit_commands 1
retain_status_information 1
retain_nonstatus_information 1
email <here it is a company email id>
use xi_contact_generic
}
I configured this with xi notification handler but still it does not work. I did 1 more thing, I created only a contact and set the notification command to notify-service-by-email and edited the command with -r option for /bin/mail. That option is sending an email from the email id which I want.
But I need this to work from the Nagios XI email setting feature. Please help and let me know if you need any more information. I can send you the service definition also which I am using for monitoring.
define service {
host_name localhost
service_description Service Status - ntpd
use local-service
check_command check_xi_service_status!ntpd!!!!!!!
initial_state o
max_check_attempts 1
check_interval 2
retry_interval 1
active_checks_enabled 1
check_period 24x7
event_handler nagios_otrs
event_handler_enabled 1
flap_detection_enabled 0
flap_detection_options o,w,c,u,
process_perf_data 1
notification_interval 5
notification_period 24x7
notification_options w,c,u,r,f,s,
notifications_enabled 1
contacts <Contact is present which is configured>
register 1
}