I am unable to get notifications to work at all on a recently setup
nagios 3.0.6 on RHEL 5.3. I used nconf to generate the configs.
Here are the relevant configuration entries and log file outputs. Any
pointers would be greatly appreciated.
Configs:
--------
nagios.cfg
enable_notifications=1
Contact and contactgroup definitions:
------------------------------------
define contact {
contact_name csingh
alias Charanbeer Singh
host_notification_options d,u,r,f,n
service_notification_options w,u,c,r,f,n
email
[email protected]
host_notification_period 24x7
service_notification_period 24x7
host_notification_commands
notify-host-by-email
service_notification_commands
notify-service-by-email
}
define contactgroup {
contactgroup_name unix_admins
alias UNIX
Administrators
members csingh
}
Host Definition:
---------------
define host {
host_name logserver
address 172.22.4.211
check_command check-host-alive
max_check_attempts 3
notification_interval 15
notification_options d,u,r
active_checks_enabled 1
passive_checks_enabled 0
notifications_enabled 1
check_period 24x7
notification_period 24x7
contact_groups unix_admins
}
Service Definition:
------------------
define service {
service_description
check_http_logserver
check_command check_http!
host_name logserver
notification_period 24x7
check_period 24x7
contact_groups unix_admins
event_handler_enabled 1
max_check_attempts 2
normal_check_interval 5
retry_check_interval 1
notification_interval 5
notification_options w,u,c,r
active_checks_enabled 1
passive_checks_enabled 0
notifications_enabled 1
check_freshness 0
freshness_threshold 86400
}
Logfiles:
---------
nagios.log
[1240508711] SERVICE ALERT:
logserver;check_http_logserver;CRITICAL;SOFT;1;Connection refused
[1240508771] SERVICE ALERT:
logserver;check_http_logserver;CRITICAL;HARD;2;Connection refused
nagios.debug
[1240510869.071287] [032.0] [pid=28615] ** Service Notification Attempt
** Host: 'logserver', Service: 'check_http_logserver', Type: 0, Options:
0, Current S
tate: 2, Last Notification: Wed Dec 31 19:00:00 1969
[1240510869.071331] [032.0] [pid=28615] Notification viability test
passed.
[1240510869.071345] [032.1] [pid=28615] Current notification number: 1
(incremented)
[1240510869.071358] [032.1] [pid=28615] Service notification will NOT be
escalated.
[1240510869.071372] [032.1] [pid=28615] Adding normal contacts for
service to notification list.
[1240510869.071419] [032.0] [pid=28615] No contacts were notified. Next
possible notification time: Wed Dec 31 19:00:00 1969
[1240510869.071432] [032.0] [pid=28615] 0 contacts were notified.
Regards,
Charanbeer
This email is intended only for the named person or entity to which it is
addressed and contains valuable business information that is proprietary,
privileged, confidential and/or otherwise protected from disclosure.
Dissemination, distribution or copying of this email or the information herein
by anyone other than the intended recipient, or an employee or agent
responsible for delivering the message to the intended recipient, is
prohibited. If you have received this email by mistake, please delete it from
your system immediately and notify the sender. Email transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of email transmission.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Nagios-users mailing list
[email protected]
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