Re: [Nagios-users] Repeating event handler in hard service state....

2012-10-08 Thread Matthew Jurgens

On 9/10/2012 1:17 AM, Peter Kaagman wrote:

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

If you set the service to volatile if will run the event handler every 
time the service is not OK, even after multiple HARD states.


The event handler at edcint.co.nz/checkwmiplus will also give you fine 
grain control over exactly what states the event handler should do 
something including specific text strings in the service output. This 
may add some flexibility so that you only restart the tunnel if you 
really need to.



--
Smartmon System Monitoring 
www.smartmon.com.au 
--
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@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] Repeating event handler in hard service state....

2012-10-09 Thread Frank Bulk
Simple script in cron...

-Original Message-
From: Peter Kaagman [mailto:p.kaag...@atlascollege.nl] 
Sent: Monday, October 08, 2012 9:17 AM
To: nagios-users@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@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@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] Repeating event handler in hard service state....

2012-10-09 Thread Peter Kaagman


Van: Matthew Jurgens [mailto:nagiosus...@edcint.co.nz]
Verzonden: dinsdag 9 oktober 2012 0:27
Aan: Nagios Users List
Onderwerp: Re: [Nagios-users] Repeating event handler in hard service state


If you set the service to volatile if will run the event handler every time the 
service is not OK, even after multiple HARD states.

The event handler at edcint.co.nz/checkwmiplus will also give you fine grain 
control over exactly what states the event handler should do something 
including specific text strings in the service output. This may add some 
flexibility so that you only restart the tunnel if you really need to.

--
Smartmon System Monitoring<http://www.smartmon.com.au>
www.smartmon.com.au<http://www.smartmon.com.au>

[Peter Kaagman]
Thanks... that did the trick. Did not solve the notification part. But I can 
live with that

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@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] Repeating event handler in hard service state....

2012-10-09 Thread Peter Kaagman


> -Oorspronkelijk bericht-
> Van: Frank Bulk [mailto:frnk...@iname.com]
> Verzonden: woensdag 10 oktober 2012 5:34
> Aan: nagios-users@lists.sourceforge.net
> Onderwerp: Re: [Nagios-users] Repeating event handler in hard service
> state
> 
> Simple script in cron...
> 
[Peter Kaagman] 
That is in fact how it all started out for me: putting ping checks in cron jobs.

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