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 pe
For shell based event handlers I normally add these lines to the top of
the script:
set -x
exec >> /tmp/event.log 2>&1
echo "= Started `date` "
set
This way, everything the event handler does is written to the file
/tmp/event.log
Also, this page: http://edcint
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 gen
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"
> Betreff: [Nagios-users] event handler debug
> Hi,
>
>
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
s-event-handler-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,
&g
ios-users@lists.sourceforge.net
>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 m
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
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 ha
scritto:
> On Mon, Apr 26, 2010 at 11:20 AM, Flyinvap wrote:
>> Le Mon, 26 Apr 2010 10:25:37 -0400,
>> alexus a écrit :
>>
>>> is there a
On Mon, Apr 26, 2010 at 11:20 AM, Flyinvap wrote:
> Le Mon, 26 Apr 2010 10:25:37 -0400,
> alexus 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
Le Mon, 26 Apr 2010 10:25:37 -0400,
alexus 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
is there a way to incorporate flapping state into event handler?
--
http://alexus.org/
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourcef
> -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 macr
>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
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
-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
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 l
5984
cell 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.
> 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_name my_host
> service_description NFS Check
> check_p
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
; cell 720-210-4671
> rick.garl...@quantum.com
>
> -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
>
&
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
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
4th guess: is it executable?
Justin
--
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 Int
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:
> -Original Message-
> From: Marc Powell [mailto:m...@ena.com]
>
>
> 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
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 s
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
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 t
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 nsclie
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 http:
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
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.
Tay
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 w
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
ou
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
-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 value
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
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
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
>
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
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
m: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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
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… (i
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 service{
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
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 externa
ndler)
-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 handl
-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 ap
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
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
Drew Weaver wrote:
> $a = $argv[0];
> $b = $argv[1];
> $c = $argv[2];
> $d = $argv[3];
> $handle = fopen(“output”, “a+”);
> $content = “$a - $b - $c - $d\n”;
> $go = fwrite($handle, “$content”);
> ?>
You'll want to specify the full path to the 'output' file. Nagios won't
necessarily call it from
Hi there, I created a very simple event handler just to 'see
how it works' and I am having a slight problem perhaps someone can assist me...
define command{
command_namehost-status
command_line/usr/bin/php /blah/host-status.php $HOSTSTATE$
$HOSTADDRESS$
> -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 try
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:
event_hand
> -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 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 s
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.
>
> -Original 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 opti
@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
> -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
?
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:
> -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
>
&g
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
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:
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 assu
> Andreas Ericsson wrote:
> > The easiest is probably to set your script as notification command
for a
> contact. This will nicely bypass all the troubles (and be sane at the
> same time).
>
> I thought about this, and may still go down this path. The one caveat
is
> that the script might take som
Andreas Ericsson wrote:
> The easiest is probably to set your script as notification command for a
contact. This will nicely bypass all the troubles (and be sane at the
same time).
I thought about this, and may still go down this path. The one caveat is
that the script might take some time to run
Roy Kidder wrote:
I'm writing a perl script that will be called as an event handler for a
down/hard host. The idea behind the script is to generate some simple
debugging output and email it to the contact group for the down host.
You're aware that this is what the contact object and such are
I'm writing a perl script that will be called as an event handler for a
down/hard host. The idea behind the script is to generate some simple
debugging output and email it to the contact group for the down host.
The problem is that the contact group macro ($CONTACTEMAIL$) isn't
available to event
70 matches
Mail list logo