Repeating event handler in hard service state....
Frank Bulk
frnkblk at iname.com
Wed Oct 10 05:33:57 CEST 2012
Simple script in cron...
-----Original Message-----
From: Peter Kaagman [mailto:P.Kaagman at atlascollege.nl]
Sent: Monday, October 08, 2012 9:17 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Repeating event handler in hard service state....
Hi there list,
As I understand service specific event handlers are triggered for every
state change whenever a server is in a SOFT state, and once when a service
enters a HARD state.
Problem is that I have a service (an IPSEC tunnel) which is dependent on an
outside source. If the outside party fails (whenever they do updates once a
week) I actually kill the tunnel when attempting a restart. To solve this I
would like to keep trying the restart.
I could do this in a SOFT state by increasing the max check attempts to a
higher number... but than I would never get a notification. Letting the
service go to a HARD state (to get the notification) would limit the restart
attempt to just the one event when the service enters the HARD state.
I think there are 2 possibilities:
- Keep the service in a SOFT state and send out a notification on attempt X.
- Let the service go to a HARD state but keep on trying the restart.
Is there anyway I could achieve this? Or am I completely missing something.
Peter
----------------------------------------------------------------------------
--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
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
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
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