[Nagios-users] FW: I can't get my event handler to fire!

2008-02-20 Thread D'Ausilio, John
Searching the archives I found where to look in debug .. it appears that
Nagios thinks it's running my event handler. Macro expansion looks fine.
Problem is .. it's not actually running it! Still lost ...

-Original Message-----
From: D'Ausilio, John 
Sent: Wednesday, February 20, 2008 11:45 AM
To: 'Marc Powell'; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] I can't get my event handler to fire!

Well, I added event_handler_enabled configuration and still I'm not
getting my event handler fired. I've tried both for the service (PING)
and for the host, individually and in combination. I don't see anything
in the debug logs that would indicate that an event handler should have
fired (even with the filter set to -1). The script is executable by the
nagios user (logged in as that user, execute same commandline as in
command def, no problem).

1. What/where should I be able to see in terms of event handlers firing
in the logs?

2. Are event handlers affected by notification settings (I'm assuming
not)?

3. What the heck am I doing wrong? This looks like it should be
straightforward!

john d


>But not in the service{} definition unless it's referenced in the
>template. In addition to the program-wide setting, it must also be
>specifically enabled on a per-service basis.


##
The information contained in this communication is confidential and
may contain information that is privileged or exempt from disclosure
under applicable law. If you are not a named addressee, please notify
the sender immediately and delete this email from your system.
If you have received this communication, and are not a named
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
##

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] I can't get my event handler to fire!

2008-02-20 Thread D'Ausilio, John
Well, I added event_handler_enabled configuration and still I'm not
getting my event handler fired. I've tried both for the service (PING)
and for the host, individually and in combination. I don't see anything
in the debug logs that would indicate that an event handler should have
fired (even with the filter set to -1). The script is executable by the
nagios user (logged in as that user, execute same commandline as in
command def, no problem).

1. What/where should I be able to see in terms of event handlers firing
in the logs?

2. Are event handlers affected by notification settings (I'm assuming
not)?

3. What the heck am I doing wrong? This looks like it should be
straightforward!

john d


>But not in the service{} definition unless it's referenced in the
>template. In addition to the program-wide setting, it must also be
>specifically enabled on a per-service basis.


##
The information contained in this communication is confidential and
may contain information that is privileged or exempt from disclosure
under applicable law. If you are not a named addressee, please notify
the sender immediately and delete this email from your system.
If you have received this communication, and are not a named
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
##

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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


[Nagios-users] I can't get my event handler to fire!

2008-02-12 Thread D'Ausilio, John
I've got a 3.0rc2 instance running, and I'm trying to implement a
service-based event handler. I've added an event_handler entry to the
service check:

 

define service{

use generic-service

host_name   p5prod0

service_description PING

check_command   check_ping!100.0,20%!500.0,60%

notifications_enabled   1

contactsjdausilio

event_handler   notify-login-server

}

 

The notify-login-server command:

 

# 'notify the login server' command definition

define command{

command_namenotify-login-server

command_line
/opt/apache/nagios/libexec/eventhandlers/notify-login-server.sh
$HOSTALIAS$ $SERVICESTATE$

}

 

/opt/apache/nagios/libexec/eventhandlers/notify-login-server.sh is
executable by the nagios users, and all parent directories as well.

 

I enabled debug, and do not any references to event handler firing.

 

Am I misunderstanding something here? Event handlers are enabled
system-wide.

 

jd

 


##
The information contained in this communication is confidential and
may contain information that is privileged or exempt from disclosure
under applicable law. If you are not a named addressee, please notify
the sender immediately and delete this email from your system.
If you have received this communication, and are not a named
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
##
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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