[Nagios-users] Event Handler for a group of services.

2013-08-15 Thread Alex Flex
Hello Nagios Community, I have a host that has a series of checks (application checks, network stack checks, and others), i understand that event handlers can be set for specific services but what occurs when I want to execute an event handler based on a selective group of service states, or

[Nagios-users] event handler debug

2012-11-27 Thread fatcharly
Hi, I`m using a nagios 3.0.3 on a CentOS 5.8 and I´m a little stuck with a eventhandeler problem- I can`t see it running and I can´t find a problem in the logfiles. Here a short overview: define service{ use generic-service host_name hostname

Re: [Nagios-users] event handler debug

2012-11-27 Thread fatcharly
I forgot to mention that log_event_handlers is set to 1. Kind regards fatcharly Original-Nachricht Datum: Tue, 27 Nov 2012 18:32:58 +0100 Von: fatcha...@gmx.de An: nagios-list nagios-users@lists.sourceforge.net Betreff: [Nagios-users] event handler debug Hi, I`m

Re: [Nagios-users] event handler debug

2012-11-27 Thread Assaf Flatto
On 27/11/12 17:32, fatcha...@gmx.de wrote: Hi, I`m using a nagios 3.0.3 on a CentOS 5.8 and I´m a little stuck with a eventhandeler problem- I can`t see it running and I can´t find a problem in the logfiles. Here a short overview: define service{ use

Re: [Nagios-users] event handler debug

2012-11-27 Thread Matthew Jurgens
For shell based event handlers I normally add these lines to the top of the script: set -x exec /tmp/event.log 21 echo = Started `date` set This way, everything the event handler does is written to the file /tmp/event.log Also, this page:

Re: [Nagios-users] Event Handler Question

2011-07-28 Thread Mathew Walker
-restarting-service Perhaps something in there may be useful. -- Mat W. From: marcel.ga...@trans4mation.de To: nagios-users@lists.sourceforge.net Date: Wed, 27 Jul 2011 11:46:18 +0200 Subject: Re: [Nagios-users] Event Handler Question Hey Chris, have you taken a look into the Docu

Re: [Nagios-users] Event Handler Question

2011-07-27 Thread Marcel Galke - Trans4mation IT GmbH
Subject: [Nagios-users] Event Handler Question I am having an issue with a very basic event handler on Nagios 3.2.3. I have the event handler defined with 3 macros: $HOSTSTATE$ $HOSTSTATETYPE$ $HOSTADDRESS$ all passed to a wrapper shell script that takes each macro as $1, $2, and $3

[Nagios-users] Event Handler Question

2011-07-26 Thread Chris Zimmerman
I am having an issue with a very basic event handler on Nagios 3.2.3. I have the event handler defined with 3 macros: $HOSTSTATE$ $HOSTSTATETYPE$ $HOSTADDRESS$ all passed to a wrapper shell script that takes each macro as $1, $2, and $3. In the wrapper script I added some echo statements as part

[Nagios-users] event handler flapping

2010-04-26 Thread alexus
is there a way to incorporate flapping state into event handler? -- http://alexus.org/ -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net

Re: [Nagios-users] event handler flapping

2010-04-26 Thread Flyinvap
Le Mon, 26 Apr 2010 10:25:37 -0400, alexus ale...@gmail.com a écrit : is there a way to incorporate flapping state into event handler? May be test $HOSTPERCENTCHANGE$, $SERVICEPERCENTCHANGE$ or $NOTIFICATIONTYPE$ macros in your event handler script ? -- Fly

Re: [Nagios-users] event handler flapping

2010-04-26 Thread alexus
On Mon, Apr 26, 2010 at 11:20 AM, Flyinvap flyin...@orange.fr wrote: Le Mon, 26 Apr 2010 10:25:37 -0400, alexus ale...@gmail.com a écrit : is there a way to incorporate flapping state into event handler? May be test $HOSTPERCENTCHANGE$, $SERVICEPERCENTCHANGE$ or $NOTIFICATIONTYPE$ macros in

Re: [Nagios-users] event handler flapping

2010-04-26 Thread Giorgio Zarrelli
Try with environment variables, they Are described in the manual. Mauve they can help! Ciao, Giorgio Il giorno 26/apr/2010, alle ore 18.54, alexus ale...@gmail.com ha scritto: On Mon, Apr 26, 2010 at 11:20 AM, Flyinvap flyin...@orange.fr wrote: Le Mon, 26 Apr 2010 10:25:37 -0400, alexus

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Rick Garland
To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] event handler script not executing Hi all: Got Nagios core 3.2.0 on CentOS5. Been trying to get an event handler to execute but it will not. My configs; define service{ use local_service

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Assaf Flatto
-Original Message- From: Rick [mailto:rick.garl...@quantum.com] Sent: Tuesday, March 09, 2010 7:04 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] event handler script not executing Hi all: Got Nagios core 3.2.0 on CentOS5. Been trying to get an event handler

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Rick Garland
To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] event handler script not executing Hi all: Got Nagios core 3.2.0 on CentOS5. Been trying to get an event handler to execute but it will not. My configs; define service{ use local_service

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Rick Garland
720-210-4671 rick.garl...@quantum.com -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: Wednesday, March 10, 2010 8:47 AM To: Nagios Users List Subject: Re: [Nagios-users] event handler script not executing Hi all: Got Nagios core 3.2.0 on CentOS5. Been trying

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Marc Powell
On Mar 10, 2010, at 10:34 AM, Rick Garland wrote: Hi Mark: I have included the entry from the nagios.log file The entry in the nagios.log [1268099555] SERVICE_EVENT_HANDLER: my_host;NFS CHECK;CRITCAL;SOFT;3;remount-nfs!CRITCAL!SOFT!3 Within nagios the event handler is being launched.

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Rick Garland
-Original Message- From: Marc Powell [mailto:m...@ena.com] Sent: Wednesday, March 10, 2010 10:10 AM To: Nagios Users List Subject: Re: [Nagios-users] event handler script not executing On Mar 10, 2010, at 10:34 AM, Rick Garland wrote: Hi Mark: I have included the entry from

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Marc Powell
On Mar 10, 2010, at 11:29 AM, Rick Garland wrote: Hi Marc: In the script I have it doing a couple of arcane things for testing. I have it touch a file called 'test' and I have it echo the macro values to a file as well. These are successful. When trying to launch from nagios these files

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Rick Garland
On Mar 10, 2010, at 11:29 AM, Rick Garland wrote: Hi Marc: In the script I have it doing a couple of arcane things for testing. I have it touch a file called 'test' and I have it echo the macro values to a file as well. These are successful. When trying to launch from nagios these

Re: [Nagios-users] event handler script not executing

2010-03-10 Thread Stuart Browne
-Original Message- From: Rick Garland [mailto:rick.garl...@quantum.com] On Mar 10, 2010, at 11:29 AM, Rick Garland wrote: Hi Marc: In the script I have it doing a couple of arcane things for testing. I have it touch a file called 'test' and I have it echo the macro values to a

[Nagios-users] event handler script not executing

2010-03-09 Thread Rick
Hi all: Got Nagios core 3.2.0 on CentOS5. Been trying to get an event handler to execute but it will not. My configs; define service{ use local_service host_namemy_host service_description NFS Check check_period

[Nagios-users] event handler command not executing

2010-03-08 Thread Rick Garland
Hi all: Got Nagios core 3.2.0 on CentOS5. Been trying to get an event handler to execute but it will not. My configs; define service{ use local_service host_namemy_host service_description NFS Check check_period

Re: [Nagios-users] event handler command not executing

2010-03-08 Thread Marc Powell
On Mar 8, 2010, at 7:58 PM, Rick Garland wrote: define command{ command_nameremount-nfs command_line $USER1$/eventhandlers/remount-nfs $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } enable_event_handlers=1 in the nagios.cfg file The script

Re: [Nagios-users] event handler command not executing

2010-03-08 Thread Stuart Browne
-Original Message- From: Marc Powell [mailto:m...@ena.com] snip Try adding a bit at the top of the script to touch a file or something to see if it really ran and is maybe failing further into the script (i.e. because of a potential sudo restriction). exec /tmp/$(/bin/basename

Re: [Nagios-users] event handler command not executing

2010-03-08 Thread Morris, Patrick
Rick Garland wrote: The script itself is very simple. At CRITICAL/SOFT/3 and CRITCAL/HARD/4 the script will execute. Running at command line as UID=nagios it runs fine. sudo is configured and nagios can mount NFS. The entry in the nagios.log [1268099555] SERVICE_EVENT_HANDLER:

Re: [Nagios-users] event handler command not executing

2010-03-08 Thread Justin Pryzby
4th guess: is it executable? Justin -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See

Re: [Nagios-users] event handler

2009-04-22 Thread Fernando Rocha
Hello Anirudh! If you change the check_nrpe to check_nt it will not work. This plugin uses nsclient++, that supports to run commands remotely over the nrpe. To add the event handlers you must change the the agent installed at hosts. To be easily, you can use the OpMon Agent, that is

Re: [Nagios-users] event handler

2009-04-22 Thread Anirudh Srinivasan
Hi, Thanks for your reply . Thats was a useful sugestion. But is there any eventhandler for windows that supports NC_NET . I tried using winexe but had a hard time testing it any it never worked for me. Why i am saying this is because we have over 50 windows machines that has NC_NET , its going

[Nagios-users] event handler

2009-04-21 Thread Anirudh Srinivasan
Hey Folks I am currently working on event handlers to restart services on Windows machines I have NC_Net installed on all client windows machines. I was looking at this plugin Windows Failed Service restart batch file at Nagios Exchange. File: win_service_restart.cmd Author: Vadims Zenins

[Nagios-users] event handler question with nrpe

2009-03-24 Thread shadih rahman
can event handler take argument. I want to have a generic shell script which take argument as to what process needs to start. I want to restart process via nrpe. Can someone please verfiy if the following will work or not? Thanks in advance. * define service{ host_name

[Nagios-users] event handler notification

2008-08-22 Thread Jordi Prats
Hi all, I've found no way to send a notification if a event handler is triggered. Is it possible? Many thanks! -- Jordi - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux

Re: [Nagios-users] event handler notification

2008-08-22 Thread Marc Powell
On Aug 22, 2008, at 6:48 AM, Jordi Prats wrote: Hi all, I've found no way to send a notification if a event handler is triggered. Is it possible? Please expand. The question above can be interpreted several ways. There's no reason I am aware of that a normal notification wouldn't go out

Re: [Nagios-users] event handler notification

2008-08-22 Thread Mikael Fridh
On Fri, Aug 22, 2008 at 6:02 PM, Marc Powell [EMAIL PROTECTED] wrote: On Aug 22, 2008, at 6:48 AM, Jordi Prats wrote: Hi all, I've found no way to send a notification if a event handler is triggered. Is it possible? Please expand. The question above can be interpreted several ways.

Re: [Nagios-users] event handler notification

2008-08-22 Thread Taylor Dondich
That seems a bit weird? In that case, why have an event handler anyways? You just tell notifications to be sent on the first soft state change (max_check_attempts = 1). Event Handlers are meant to try and pro-actively resolve the issue before determining notification is an appropriate step.

[Nagios-users] Event handler with null values

2008-06-22 Thread Lennard Bakker
Hi, If have created an event handler for sync a time when needed. But when nagios calls the event handler, it calls the handler with null values. [1214136751] SERVICE EVENT HANDLER: host;TIME;(null);(null);(null);synctime The macro's $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ all have

Re: [Nagios-users] Event handler with null values

2008-06-22 Thread Marc Powell
On Jun 22, 2008, at 8:40 AM, Lennard Bakker wrote: Hi, If have created an event handler for sync a time when needed. But when nagios calls the event handler, it calls the handler with null values. [1214136751] SERVICE EVENT HANDLER: host;TIME;(null);(null); (null);synctime The macro's

Re: [Nagios-users] Event handler with null values

2008-06-22 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22/06/08 11:49 AM, Marc Powell wrote: On Jun 22, 2008, at 8:40 AM, Lennard Bakker wrote: Hi, If have created an event handler for sync a time when needed. But when nagios calls the event handler, it calls the handler with null values.

Re: [Nagios-users] event handler question (if event handler is what I need?)

2008-06-11 Thread Yaniv
Mailinglist Subject: Re: [Nagios-users] event handler question (if event handler is what I need?) On Jun 10, 2008, at 4:09 AM, Yaniv wrote: Hello Nagios users Hello! Please send to this list using text/plain e-mail. Sending HTML does not-so-wonderful things for the archives and for users who

Re: [Nagios-users] event handler not working

2008-06-11 Thread Marc Powell
On Jun 11, 2008, at 7:55 AM, Kevin Manuel wrote: Thanks Marc, it works now. Except there doesn't appear to be a way to invoke the event handler when multiple OK states are reported, which was the reason for creating the event handler in the first place. I guess I will have to use

[Nagios-users] event handler question (if event handler is what I need?)

2008-06-10 Thread Yaniv
Hello Nagios users I am new to nagios and have a question about event handlers. (if event handler is what I need?) I am monitoring a windows client with NSClient++ 0.3.1.12 2008-03-11 Now I have this at my windows.cfg file (on the nagios server) define

Re: [Nagios-users] event handler question (if event handler is what I need?)

2008-06-10 Thread Marc Powell
On Jun 10, 2008, at 4:09 AM, Yaniv wrote: Hello Nagios users Hello! Please send to this list using text/plain e-mail. Sending HTML does not-so-wonderful things for the archives and for users who receive the list via digest. I am new to nagios and have a question about event handlers… (if

Re: [Nagios-users] event handler not working

2008-06-10 Thread Kevin Manuel
] On Behalf Of Marc Powell Sent: June-09-08 5:28 PM To: nagios Mailinglist Subject: Re: [Nagios-users] event handler not working On Jun 7, 2008, at 8:18 AM, Kevin Manuel wrote: Hi Marc, I am actually trying to use the event handler to send a message when the host is already in an OK state

Re: [Nagios-users] event handler not working

2008-06-10 Thread Marc Powell
On Jun 10, 2008, at 9:32 AM, Kevin Manuel wrote: Hi, I can see where the event handler has been called in the log. Any idea what the error message below would mean? Yes, see below.. Also, the service event handler is not called unless the state changes (i.e. 2-OK's in a row -

Re: [Nagios-users] event handler not working

2008-06-09 Thread Kevin Manuel
] On Behalf Of Marc Powell Sent: June-06-08 11:40 AM To: nagios Mailinglist Subject: Re: [Nagios-users] event handler not working On Jun 6, 2008, at 6:49 AM, Kevin Manuel wrote: I should add that I am trying to invoke the event handler through passive service checks supplied by an external command

Re: [Nagios-users] event handler not working

2008-06-09 Thread Marc Powell
On Jun 7, 2008, at 8:18 AM, Kevin Manuel wrote: Hi Marc, I am actually trying to use the event handler to send a message when the host is already in an OK state and an additional service=OK is received. I have not enable debug - how do I go about this? See the last 4 directives of --

Re: [Nagios-users] event handler not working

2008-06-06 Thread Kevin Manuel
-05-08 4:28 PM To: nagios Mailinglist Subject: Re: [Nagios-users] event handler not working On Jun 5, 2008, at 1:59 PM, Kevin Manuel wrote: Hi, I'm trying to get an event handler to work with no success so I'm hoping somebody might have some suggestions. It appears as though Nagios

Re: [Nagios-users] event handler not working

2008-06-06 Thread Kevin Manuel
) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Manuel Sent: June-06-08 8:04 AM To: 'nagios Mailinglist' Subject: Re: [Nagios-users] event handler not working Hi, Nagios.cfg contains the following but there is no log of the event handler being called

[Nagios-users] event handler not working

2008-06-05 Thread Kevin Manuel
Hi, I'm trying to get an event handler to work with no success so I'm hoping somebody might have some suggestions. It appears as though Nagios is not calling the event handler at all when a service check is performed. I don't think it's a permissions thing because the event handler works properly

Re: [Nagios-users] event handler not working

2008-06-05 Thread Marc Powell
On Jun 5, 2008, at 1:59 PM, Kevin Manuel wrote: Hi, I'm trying to get an event handler to work with no success so I'm hoping somebody might have some suggestions. It appears as though Nagios is not calling the event handler at all when a service check is performed. I don't Nagios

Re: [Nagios-users] Event handler

2007-08-09 Thread Marc Powell
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Tony Delov Sent: Wednesday, August 08, 2007 9:51 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Event handler Hi, I'm trying to differentiate in my event handler

[Nagios-users] Event handler

2007-08-08 Thread Tony Delov
Hi, I'm trying to differentiate in my event handler script between a recover from a critical state and one from an unknown state. I need to run a script upon a recovery, but only a recovery from a critical hard state? Is there a way to do this? Nagios: Version 1.2 From config files:

[Nagios-users] Event Handler problems

2007-03-01 Thread Sandeep Narasimha Murthy
Hi, I have been trying to set up the Nagios Eventhandler option for quite sometime in vain. I perused the link http://nagios.sourceforge.net/docs/1_0/eventhandlers.html and tried out a number of time but the script to be execute by the event handler never gets executed.. :( In the nagios log, I

Re: [Nagios-users] Event Handler problems

2007-03-01 Thread Marc Powell
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy Sent: Thursday, March 01, 2007 8:17 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Event Handler problems Hi, I have been trying to set

Re: [Nagios-users] Event Handler problems

2006-10-17 Thread Andreas Ericsson
Marc Powell wrote: It uses syslog so it's being logged to wherever *.info,*.notice, *.debug are being sent to in syslog.conf (usually something like /var/log/messages). I believe you can change the log file by adding 'nrpe.* /some/other/file' to syslog.conf and HUP or restart syslogd.

[Nagios-users] Event Handler problems

2006-10-16 Thread Sandeep Narasimha Murthy
Hello, I have an event handler configured in one of our services such that, when the service state hits critical or warning, it should activate the event handler. I am quite sure I have it configured fine but it simply does not seem to work when the service states turns critical. I also confirmed

Re: [Nagios-users] Event Handler problems

2006-10-16 Thread Marc Powell
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy Sent: Monday, October 16, 2006 6:08 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Event Handler problems Hello, I have an event handler

Re: [Nagios-users] Event Handler problems

2006-10-16 Thread Sandeep Narasimha Murthy
? Thanks, sg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: segunda-feira, 16 de Outubro de 2006 14:53 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Event Handler problems -Original Message- From: [EMAIL

Re: [Nagios-users] Event Handler problems

2006-10-16 Thread Marc Powell
-Original Message- From: Sandeep Narasimha Murthy [mailto:[EMAIL PROTECTED] Sent: Monday, October 16, 2006 9:05 AM To: Marc Powell; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Event Handler problems Hi, Thanks for the suggestion. I had already enabled

Re: [Nagios-users] Event Handler problems

2006-10-16 Thread Sandeep Narasimha Murthy
@lists.sourceforge.net Subject: Re: [Nagios-users] Event Handler problems -Original Message- From: Sandeep Narasimha Murthy [mailto:[EMAIL PROTECTED] Sent: Monday, October 16, 2006 9:05 AM To: Marc Powell; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Event Handler

Re: [Nagios-users] Event Handler problems

2006-10-16 Thread Marc Powell
Message- From: Sandeep Narasimha Murthy [mailto:[EMAIL PROTECTED] Sent: Monday, October 16, 2006 10:18 AM To: Marc Powell; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Event Handler problems Hi, I have the debug option on in the nrpe.cfg but still nothing is being logged

[Nagios-users] event handler to change plugin output?

2006-07-07 Thread Marcel Mitsuto Fucatu Sugano
Hi, When using negate to invert the check_http command that searches for some ERROR string at a web page, the output of the command is something like 'HTTP OK ...' Is there any way to change plugin output so that it reflects what really is happening in this kind of check? TIA, Marcel. AVISO:

[Nagios-users] Event Handler

2005-12-07 Thread Beswick, Stuart
I'm looking to setup an event handler to disable active checks when it first becomes critical. The reason I am doing this is because I a running a check_log, and it will go critical for only one check then go back to good. Anyone know how to do this? I would need the Check Command I would