No service notifications

Marc Powell marc at ena.com
Tue Aug 9 21:42:02 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Kevin Hanser
> Sent: Tuesday, August 09, 2005 2:25 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] No service notifications
> 
> 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)
> 

[snip]

> 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...

You do need at least some notification_options defined either in the
service template or the definition itself. I'm surprised verification
didn't fail with that left out as it's a required parameter. When you
add that and restart nagios, do you see a notification attempt in
nagios.log? If so, there's probably something wrong with your contact's
notification command. Try running it from the command line exactly as
it's defined, substituting the appropriate macro values of course, as
the nagios user and see if it goes through. 

> 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 :)

Barring you hitting some new bug in beta4, many of us have had
notifications working for years and years ;)

--
Marc


-------------------------------------------------------
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