[Fwd: RE: No service notifications]
Kevin Hanser
kevin at mica.net
Wed Aug 10 19:46:57 CEST 2005
Yep, as many have pointed out, I was missing my notification_options. I
replied back to Chester's message yesterday but apparently forgot to cc:
the list.
thanx for all the quick responses!
k
-------- Forwarded Message --------
> From: Kevin Hanser <kevin at mica.net>
> To: Hosey, Chester <Chester.Hosey at gianteagle.com>
> Subject: RE: [Nagios-users] No service notifications
> Date: Tue, 09 Aug 2005 16:14:34 -0400
>
> Ok, that explains why my bogus host wasn't giving notifications for the
> service... Makes sense :)
>
> I wasn't receiving notifications on any other services for hosts that
> were up though as well, but apparently I didn't have any
> notification_options set (I had tried adding that on the bogus host w/no
> effect, but not on a host that was actually up..).
>
> Once I added notification_options to my service definitions, I am now
> receiving notifications!
>
> thanx!!!
>
> k
>
> On Tue, 2005-08-09 at 15:45 -0400, Hosey, Chester wrote:
> > If you receive host down notifications (you say you do), you won't get
> > notifications for individual service failures. Read the Nagios docs for
> > more information.
> >
> > Besides, if you have HTTP, SSH, FTP, time, rsh, Samba, and NFS running
> > on the machine, if the power cord gets kicked out do you REALLY want
> > notifications for each of those services, or do you just want to know
> > whether the host is down?
> >
> >
> > -----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 3: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)
> >
> > # 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
-------------------------------------------------------
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