Nagios - Notifications - Not sending -
please me nagios , notifications.
in service configuration specify "contacts" . contact have specified in contacts.cfg
and there problem, notifications wont come.
please me, why notification not come dominik , dominik1 ?
thank you
there host.cfg
define service { use generic-service host_name myserver service_description ping check_command check_ping!100.0,20%!500.0,60% contacts dominik, dominik2 notification_interval 1 }
there contacts.cfg
define contact{ contact_name dominik use generic-contact alias dominik email dominik@dominik.com } define contact{ contact_name dominik1 use generic-contact alias dominik1 email dominik1@dominik.com }
there template.cfg
define service{ name generic-service ; 'name' of service template active_checks_enabled 1 ; active service checks enabled passive_checks_enabled 1 ; passive service checks enabled/accepted parallelize_check 1 ; active service checks should parallelized (disabling can lead major performance problems) obsess_over_service 1 ; should obsess on service (if necessary) check_freshness 0 ; default not check service 'freshness' notifications_enabled 1 ; service notifications enabled event_handler_enabled 1 ; service event handler enabled flap_detection_enabled 1 ; flap detection enabled process_perf_data 1 ; process performance data retain_status_information 1 ; retain status information across program restarts retain_nonstatus_information 1 ; retain non-status information across program restarts is_volatile 0 ; service not volatile check_period 24x7 ; service can checked @ time of day max_check_attempts 3 ; re-check service 3 times in order determine final (hard) state normal_check_interval 10 ; check service every 10 minutes under normal conditions retry_check_interval 2 ; re-check service every 2 minutes until hard state can determined # contact_groups admins ; notifications sent out in 'admins' group notification_options w,u,c,r ; send notifications warning, unknown, critical, , recovery events notification_interval 60 ; re-notify service problems every hour notification_period 24x7 ; notifications can sent out @ time register 0 ; dont register definition - not real service, template! }
for sure add template generic-contact
define contact{ name generic-contact ; name of contact template service_notification_period 24x7 ; service notifications can sent anytime host_notification_period 24x7 ; host notifications can sent anytime service_notification_options w,u,c,r,f,s ; send notifications service states, flapping events, , scheduled downtime events host_notification_options d,u,r,f,s ; send notifications host states, flapping events, , scheduled downtime events service_notification_commands notify-service-by-email ; send service notifications via email host_notification_commands notify-host-by-email ; send host notifications via email register 0 ; dont register definition - not real contact, template! }
it might not configurations. check if email(smtp) server , running on setup. or add external smtp details in nagios, nagios able send mails.
Comments
Post a Comment