notifications for a passive Nagios check

Jim Avery jim at jimavery.me.uk
Wed Mar 3 13:13:12 CET 2010


On 3 March 2010 10:43,  <wadud.miah at stfc.ac.uk> wrote:
> I have a Nagios passive check which doesn't send out any alerts when
> it's in a critical status:
>
> define service{
>  name                                  hpcsg-service
>  register                              0
>
>  max_check_attempts                    3
>  normal_check_interval                 30
>  retry_check_interval                  1
>  active_checks_enabled                 0
>  passive_checks_enabled                1
>  check_period                          24x7
>  check_freshness                       0
>  obsess_over_service                   0
>  notification_interval                 0
>  notification_period                   24x7
>  notification_options                  w,u,c,r
>  notifications_enabled                 1
>  contact_groups                        hpcsg
> }
>
> define service{
>  use                                           hpcsg-service
>
>  name                                          r89-service
>  register                                      0
>  contact_groups                                r89
>
>  check_freshness                               0
>  active_checks_enabled                         0
>  passive_checks_enabled                        1
>  notifications_enabled                         1
> }
>
> define service{
>  use                                           r89-service
>
>  host_name                                     r89-trap.esc.rl.ac.uk
>  service_description                           hpd-crac-07
>  check_command                                 none
> }
>
> define command{
>        command_name    none
>        command_line    /bin/true
> }
>
> The GCI shows that the hpd-crac-07 check has notifications enabled, but
> when I "view notifications for this service", it hasn't sent any. We
> have similar checks in place that do send notifications, but the key
> difference here is that the above check is a purely passive one, i.e. it
> only receives check results.


Is the service still in a soft state?  Notifications are only usually
sent when the service goes in to a hard state.  If the passive check
is only sent once to indicate a critital or warning state, I believe
you will need to set max_check_attempts to 1.

To make sure your templates are being applied correctly, take a look
at what does the service definition looks like in your objects.cache
file.

hth,

Jim

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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