nagios not notifying by email
Toto Capuccino
shoktai at gmail.com
Thu Feb 23 15:27:03 CET 2006
Hi,
Did you check the timeperiods.cfg file as you are using workhours
notification for services, you wont receive notification out of this period.
2006/2/23, Dave Stern <dave at umiacs.umd.edu>:
>
> Continuing with the problem of nagios not sending email notifications,
>
> miscommands.cfg uses the default commands for host/service-notify-by-email
> and the paths to mail are correct. I tested the command, and it works.
> I replaced it with echo ... params>>/tmp/somefile but this is not being
> activated so it must be one of the config params:
>
> contacts.cfg:
> # 'others' contact definition
> define contact{
> contact_name others
> alias Undefined hosts
> service_notification_period workhours
> host_notification_period workhours
> service_notification_options w,u,c
> host_notification_options d,u
> service_notification_commands notify-by-email
> host_notification_commands host-notify-by-email
> email root at netmon.umiacs.umd.edu
>
> }
> ......
> hosts.cfg:
> # Generic host definition template
> define host{
> name generic-host
> 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
> }
>
> # 'host1' host definition
> define host{
> use generic-host
> host_name host1
> alias host1
> address 10.8.122.129
> check_command check-host-alive
> max_check_attempts 10
> notification_interval 1
> notification_period 24x7
> notification_period 24x7
> notification_options d,u
> }
> ...
>
> nagios.cfg includes
> log_notifications=1
> notification_timeout=30
> enable_notifications=1
>
>
> 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 1
> 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
> }
>
> # Service definition
> define service{
> use generic-service
> host_name host1
> service_description AVAILABLE
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 10
> retry_check_interval 1
> contact_groups others
> notification_interval 11
> notification_period 24x7
> notification_options w,u,c
> check_command check-host-alive
> }
> ....
>
> Can anyone see where notification by email may have been turned off
> or have any other ideas on diagnosing?
> TIA
>
>
> =-=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=
> David Stern University of Maryland
> Institute for Advanced Computer Studies
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> 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
>
--
Le bon sens est la chose du monde la mieux partagée.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060223/4e9de1e8/attachment.html>
More information about the Users
mailing list