Re: [Nagios-users] Event Handlers

2010-02-03 Thread Mike Lindsey
Marc Powell wrote: > On Feb 3, 2010, at 8:16 AM, Jeff wrote: > >> I have a service that needs to be monitored every minute. I need some help >> understanding how services go from soft to a hard state > > When a service check results in a non-OK state, services go from a Soft to a > Hard state

Re: [Nagios-users] Event Handlers

2010-02-03 Thread Marc Powell
On Feb 3, 2010, at 8:16 AM, Jeff wrote: > I have a service that needs to be monitored every minute. I need some help > understanding how services go from soft to a hard state When a service check results in a non-OK state, services go from a Soft to a Hard state when they reach max_check_atte

[Nagios-users] Event Handlers

2010-02-03 Thread Jeff
I have a service that needs to be monitored every minute. I need some help understanding how services go from soft to a hard state and if an event handler can be run after a service has gone into a hard state. I'm sure everyone has a very dynamic and custom environment to some extent. I have eve

Re: [Nagios-users] event handlers and Schedule Downtime

2010-01-29 Thread Menard, Chris
Perfect, thanks. I think I may for, for this weekend 'Disable Active Checks' on the service group. Then get to updating my event handlers. From: Martin Melin [mailto:mart...@op5.org] Sent: Friday, January 29, 2010 9:34 AM To: Menard, Chris Cc: Nagios Mailinglist Subject: Re: [Na

Re: [Nagios-users] event handlers and Schedule Downtime

2010-01-29 Thread Martin Melin
On Fri, Jan 29, 2010 at 3:01 PM, Menard, Chris wrote: > I have a scheduled host downtime setup for Sunday. When I start to take > services down, will event handlers still trigger and still try to restart > what I want down? > Yes, if your event handlers are not written to consider scheduled down

[Nagios-users] event handlers and Schedule Downtime

2010-01-29 Thread Menard, Chris
I have a scheduled host downtime setup for Sunday. When I start to take services down, will event handlers still trigger and still try to restart what I want down? What is the easiest way to temporarily suspend event handlers? Thanks, Chris (Nagios 3.1.2 in Solaris) -

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-03 Thread Edgar Matzinger
LS, Marco scribbled on 2009-07-03: > Hello users: > > nohup $JAVA_CMD -cp $CLASSPATH $JVM_OPTIONS > JMXServer.JMXServerDispatcher $PORT >$LOG_FILE > 2>>$LOG_FILE & Change this in $PORT <&- >>$LOGFILE 2>&1 & <&- closes STDIN > Any thoughts? other suggestions? can't you use the init

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-03 Thread Marco Tirado
Hello users: Thank you for all the answers. I have made some changes to my command: I added a space before the "&" character and I explicitly piped the "stdout" and "stderr" to my log file to avoid missunderstandings. The command looks like this now: nohup $JAVA_CMD -cp $CLASSPATH $JVM_OPTIONS JM

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Marc Powell
On Jul 2, 2009, at 9:16 AM, Marco Tirado wrote: > > That is exactly what I am doing (or trying to do with) the "&" > character at the end of my command. But it does not appear to be > working, the command looks like this: > > nohup $JAVA_CMD -cp $CLASSPATH $JVM_OPTIONS JMXServer $PORT null 2

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Andreas Ericsson
Marco Tirado wrote: > Hello Users: > > I have a problem with an event handler of mine. The handler starts a java > daemon-like program which loops forever waiting for connections and performs > JMX queries against our java applications. > > The problem is that the handler times out when it is run

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Kevin Keane
First, put a space in front of that &. Otherwise, it may be treated as part of the variable name. Second, I believe that the 2>&1 needs to come AFTER the redirection to $LOG_FILE. Otherwise, what you are doing is redirecting stderr to stdin - which is still the console - and THEN redirecting st

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread David Rosenstrauch
Perhaps instead of using a java daemon to do JMX queries, you could use the check_jmx nagios plugin. (Available at the monitoring exchange site.) I've been using it in our Nagios system, and it's been working nicely (after some enhancements). I'm in the process of adopting and enhancing the c

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Marco Tirado
That is exactly what I am doing (or trying to do with) the "&" character at the end of my command. But it does not appear to be working, the command looks like this: nohup $JAVA_CMD -cp $CLASSPATH $JVM_OPTIONS JMXServer $PORT &1 >> $LOG_FILE& Any suggestions? Am I missing something else? //Marco

[Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Marco Tirado
Hello Users: I have a problem with an event handler of mine. The handler starts a java daemon-like program which loops forever waiting for connections and performs JMX queries against our java applications. The problem is that the handler times out when it is run by nagios. This is what I see in

Re: [Nagios-users] event handlers - remounting smb shares

2009-03-06 Thread Kyle O'Donnell
write the logic into the event handler script. pass the $SERVICEOUTPUT$ to the event handler have the event handler check if the appropriate moutpoint has returned the desired (or undesired) error if condition mount else echo wrong mount failure dont do anything. On 3/6/09, Assaf Flatto wro

Re: [Nagios-users] event handlers - remounting smb shares

2009-03-06 Thread Assaf Flatto
Hello Kyle You missed my point - i think . Doing checks on the remote machine is not a problem , i am doing so via NRPE and with no problems . My issue is - how do i make it dynamic - and not a different script for each mount point . I want it to be a single script that when i pass the argu

Re: [Nagios-users] event handlers - remounting smb shares

2009-03-06 Thread Kyle O'Donnell
How do you check your systems remotely? search the nagiosexchange for something called 'rexec' it is an event handler that I wrote that executes commands remotely using ssh or NRPE. If using NRPE a script to run your mount should be written and added to your nrpe.cfg command list. if this is l

[Nagios-users] event handlers - remounting smb shares

2009-03-06 Thread Assaf Flatto
Hello List I am having an issue with trying to implement event handlers . Let me explain the background first : We have a several servers that are rebooted every weekend and one of them is a file server with several exported mount points to other servers . After the reboots one of the machi

Re: [Nagios-users] Event Handlers

2009-01-15 Thread Morris, Patrick
> Is there a way to run the an event handler from the web interface? > Example: When our internet goes down I have an event handler to restart > a service on one of our Linux servers. This works great if the internet > is down for a minute or less. Once I know the internet is back up if it > ha

[Nagios-users] Event Handlers

2009-01-15 Thread Morris, Josh
Is there a way to run the an event handler from the web interface? Example: When our internet goes down I have an event handler to restart a service on one of our Linux servers. This works great if the internet is down for a minute or less. Once I know the internet is back up if it has been down

Re: [Nagios-users] Event Handlers

2008-10-15 Thread Gürkan Aslan
Hi Francis, Thanks for your answer but i solved the problem. My Mistakes: * I must use full path in my bash script. * Event Handler is triggering the event only for the first state change. Best regards Çrş, 2008-10-15 tarihinde 10:51 -0400 saatinde, Francis Dube yazdı: > Gürkan

Re: [Nagios-users] Event Handlers

2008-10-15 Thread Francis Dube
Gürkan Aslan a écrit : > Hi, > > I'm trying to define an event handler for nagios. Actually it will work > same as event handler example > (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but > it doesn't work... i'm trying to create a file in /tmp folder to test, > but nothing i

[Nagios-users] Event Handlers

2008-10-15 Thread Gürkan Aslan
Hi, I'm trying to define an event handler for nagios. Actually it will work same as event handler example (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but it doesn't work... i'm trying to create a file in /tmp folder to test, but nothing in return. event_handler_enabled = 1

Re: [Nagios-users] Event Handlers on the External Commands

2007-12-11 Thread mark redding
Hi, On 11/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > For this, I want to write Event Handlers on the External Commands, but I am > not sure How to go about it ? > Does somebody has any idea about it ? any sample code will be of great > help. These snippet of shell script may be of

Re: [Nagios-users] Event Handlers on the External Commands

2007-12-11 Thread Andreas Ericsson
[EMAIL PROTECTED] wrote: > I am trying to get the performance data from the remote machines passively > and want to control the starting and the stopping of the monitoring probes > from the Nagios Server machine. > > For this, I want to write Event Handlers on the External Commands, but I am > not

[Nagios-users] Event Handlers on the External Commands

2007-12-11 Thread ankit . mehrotra
I am trying to get the performance data from the remote machines passively and want to control the starting and the stopping of the monitoring probes from the Nagios Server machine. For this, I want to write Event Handlers on the External Commands, but I am not sure How to go about it ? Does some

Re: [Nagios-users] event handlers for Windows systems?

2007-08-28 Thread Anthony Montibello
hi Rogelio, As others have mentioned, use a eventhandler in nagios and have the event handler script call a checkplugin that can run a script on windows. for running your script on windows you have several options, basically it should boil down to a few choices, NRPE or NC_Net bolth can run scrip

Re: [Nagios-users] event handlers for Windows systems?

2007-08-28 Thread moshe sharon
Hello if you are using NRPE_NT or nsclient++ which support plugins it is pretty easy to write an batch file event handler such as: @echo off net start dhcp this will start the dhcp client service. and of course delete files, reboot server etc... you just add entry in the nrpe.cfg to run the batch

Re: [Nagios-users] event handlers for Windows systems?

2007-08-28 Thread Furnish, Trever G
esday, August 28, 2007 2:09 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] event handlers for Windows systems? > > I've googled around for Nagios event handlers that work with > Windows systems, but I haven't found anything that I can work with. > >

[Nagios-users] event handlers for Windows systems?

2007-08-28 Thread Rogelio Bastardo
I've googled around for Nagios event handlers that work with Windows systems, but I haven't found anything that I can work with. Am I not looking in the right place (or right keywords) or does this not tend to work well with Nagios and some Nagios friendly client running on a Windows system (e.g.

Re: [Nagios-users] Event Handlers

2007-01-24 Thread edalB
mean... follow the docs... > > > > > > -h > > Hari Sekhon > > > > > > > > Marc Powell wrote: > > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:nagios-users- > > [EMAIL PROTECTED] On Behalf

Re: [Nagios-users] Event Handlers

2007-01-23 Thread edalB
-- > From: [EMAIL PROTECTED] > [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of edalB > Sent: Friday, January 19, 2007 7:46 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Event Handlers > > Hi all. > > I have created a event handler as a test t

Re: [Nagios-users] Event Handlers

2007-01-19 Thread Hari Sekhon
he white rabbit... I mean... follow the docs... -h Hari Sekhon Marc Powell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of edalB Sent: Friday, January 19, 2007 7:46 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-user

Re: [Nagios-users] Event Handlers

2007-01-19 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of edalB > Sent: Friday, January 19, 2007 7:46 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Event Handlers > > Hi all. > > I hav

Re: [Nagios-users] Event Handlers

2007-01-19 Thread edalB
I have done that and it does work. nagios-0 libexec # su nagios [EMAIL PROTECTED] /usr/local/nagios/libexec $ /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo /etc/init.d/apache2 restart * Service apache2 stopping apache2: Could not determine the server's fully qualified dom

Re: [Nagios-users] Event Handlers

2007-01-19 Thread Andy Shellam (Mailing Lists)
Please please please don't forgot to copy your responses to the list! Yep Nagios is executing your service handler (or at least trying to.) Try executing your command from an SSH console as the Nagios user. Andy. edalB wrote: > This is what I see in the log file > > Jan 19 15:21:18 nagios-0 nag

Re: [Nagios-users] Event Handlers

2007-01-19 Thread edalB
AIL PROTECTED] On Behalf Of edalB > Sent: 19 January 2007 16:46 > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Event Handlers > > Hi all. > > I have created a event handler as a test to see how it works. The hard > part I have done. > > I create

Re: [Nagios-users] Event Handlers

2007-01-19 Thread Andy Shellam (Mailing Lists)
Are event handlers enabled for this service? Do they show up as executed in the log file when your HTTP service goes down? edalB wrote: > Hi all. > > I have created a event handler as a test to see how it works. The hard > part I have done. > > I created a ssh key on on the nagios server. I test

[Nagios-users] Event Handlers

2007-01-19 Thread edalB
Hi all. I have created a event handler as a test to see how it works. The hard part I have done. I created a ssh key on on the nagios server. I tested that I am able to connect via ssh over to the other server working 100% fine. I then next tested my ssh connection using my ssh key to execute th

Re: [Nagios-users] Event Handlers and service check timeouts

2006-11-01 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Hari Sekhon > Sent: Wednesday, November 01, 2006 7:16 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Event Handlers and service check timeouts

[Nagios-users] Event Handlers and service check timeouts

2006-11-01 Thread Hari Sekhon
Hi, I would like to implement an event handler but I find that I get service check timeouts for some services. Is there a way of implementing event handlers so that they do not fire when a service goes critical as the result of a service check timeout? Thanks -h -- Hari Sekhon ---

[Nagios-users] Event-Handlers for sending SNMP traps on Nagios events?

2006-07-27 Thread Christian Hammers
Hello I'd like to send SNMP traps on Nagios evens using an event-handler script in misccommands.cfg and the Nagios MIBs I found with google. Has anybody already made event-handler scripts for this? Something that translates the various Nagios states (ACK, OK, CRITICAL) to MIB values and maybe doe

Re: [Nagios-users] Event Handlers

2006-03-31 Thread Toto Capuccino
   To: nagios-users@lists.sourceforge.netcc:    Subject:    [Nagios-users] Event Handlers Most of all of the processes and such I monitor are not on the Nagiosserver.  I do want to be able to use event handlers to try andresolve things before I get paged though, so I am wondering if there is

Re: [Nagios-users] Event Handlers

2006-03-31 Thread tomvo
CTED] 10/03/2006 23:29 To: nagios-users@lists.sourceforge.net cc: Subject: [Nagios-users] Event Handlers Most of all of the processes and such I monitor are not on the Nagios server. I do want to be able to use event handlers to try and resolve things before

[Nagios-users] Event Handlers

2006-03-10 Thread Dehnert James Sr
Most of all of the processes and such I monitor are not on the Nagios server. I do want to be able to use event handlers to try and resolve things before I get paged though, so I am wondering if there is a plug-in that can be used through NCSA or NRPE that will allow me to run an event han

[Nagios-users] event handlers

2006-03-07 Thread Toto Capuccino
Hi Nachos folks,I would like some of you please to give me advice on how and what could be be the better way to write a simple script to be run as an eventhandler inside nagios. I am currently checking that the Microsoft Exchange services Information Store, System Attendant are running and i would