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
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
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
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
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
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)
-
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
[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
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
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
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
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.
>
>
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.
mean... follow the docs...
> >
> >
> > -h
> > Hari Sekhon
> >
> >
> >
> > Marc Powell wrote:
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf
--
> 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
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
> -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
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
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
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
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
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
> -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
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
---
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
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
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
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
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
46 matches
Mail list logo