No service notifications
Kevin Hanser
kevin at mica.net
Tue Aug 9 21:25:21 CEST 2005
Hello,
I have searched the list and found similar problems to what I'm
experiencing, but no solution yet.... I have recently installed Nagios
v2.0b4 (this is my first Nagios install BTW) and have it configured to
monitor some hosts, and services on those hosts. Everything that I see
in the configuration seems to indicate that service notifications are
enabled, as does the GUI interface. However, I never get service
notifications.
I set up a bogus host with a ping service to ping an IP address that I
know isn't in use in our network. I get a host notification that the
host itself is down, but I receive no notification on the ping
service... In addition, I have other hosts (routers) that have
interfaces down, but don't receive notification from that either.
Here's how my config looks for the bogus service I set up:
nagios.cfg has enable_notifications=1
I'm using the generic-service template from minimal.cfg, but have put it
into servers.cfg: (I'm not using minimal.cfg, I just took some parts
from it)
# Generic service definition template - This is NOT a real service, just
a template!
define service{
name generic-service ; The 'name' of
this service template
active_checks_enabled 1 ; Active service checks
are enabled
passive_checks_enabled 1 ; Passive service checks
are enabled/accepted
parallelize_check 1 ; Active service checks
should be parallelized (disabling this can lead to major performance
problems)
obsess_over_service 1 ; We should obsess over
this service (if necessary)
check_freshness 0 ; Default is to NOT
check service 'freshness'
notifications_enabled 1 ; Service notifications
are enabled
event_handler_enabled 1 ; Service event handler
is enabled
flap_detection_enabled 1 ; Flap detection is
enabled
failure_prediction_enabled 1 ; Failure prediction is
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
register 0 ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
my host template is also the one from minimal.cfg:
define host{
name generic-host ; The name of
this host template
notifications_enabled 1 ; Host notifications are
enabled
event_handler_enabled 1 ; Host event handler is
enabled
flap_detection_enabled 1 ; Flap detection is
enabled
failure_prediction_enabled 1 ; Failure prediction is
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
register 0 ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
And my bogus host definintion looks like this:
define host{
use generic-host ; Name of host
template to use
host_name bogus
alias bogus host
address 207.91.195.242
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
(I receive host down notifications...)
The ping service for the bogus host looks like this:
define service{
use generic-service ; Name
of service template to use
host_name bogus
service_description Ping
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period 24x7
notifications_enabled 1
check_command check_ping!100.0,20%!500.0,60%
}
I tried adding notification_options w,u,c,r in the ping service
definition as well, but still no notifications...
What else can I check to get my service notifications working? I'm
really starting to like the interface and monitoring capabilities, but
if I can't make notifications work that kind of defeats the point :)
thanx!
k
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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
More information about the Users
mailing list