Re: [Nagios-users] notifications for a passive Nagios check
I've found the "fault". It was the max_check_attempts, which I should have set to unity! -Original Message- From: wadud.m...@stfc.ac.uk [mailto:wadud.m...@stfc.ac.uk] Sent: 03 March 2010 10:44 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] notifications for a passive Nagios check 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_attempts3 normal_check_interval 30 retry_check_interval 1 active_checks_enabled 0 passive_checks_enabled1 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_groupshpcsg } define service{ use hpcsg-service name r89-service register 0 contact_groupsr89 check_freshness 0 active_checks_enabled 0 passive_checks_enabled1 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_namenone 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. Thanks in advance. Wadud Miah Scientific Computing Systems Support, eScience Rutherford Appleton Laboratory, STFC -- Scanned by iCritical. -- 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@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 -- Scanned by iCritical. -- 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@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
Re: [Nagios-users] notifications for a passive Nagios check
On 3 March 2010 10:43, 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@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
[Nagios-users] notifications for a passive Nagios check
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_attempts3 normal_check_interval 30 retry_check_interval 1 active_checks_enabled 0 passive_checks_enabled1 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_groupshpcsg } define service{ use hpcsg-service name r89-service register 0 contact_groupsr89 check_freshness 0 active_checks_enabled 0 passive_checks_enabled1 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_namenone 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. Thanks in advance. Wadud Miah Scientific Computing Systems Support, eScience Rutherford Appleton Laboratory, STFC -- Scanned by iCritical. -- 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@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