Eventhandlers: restart-apache , logs...

ThomasC. shoktai at gmail.com
Tue May 16 11:54:52 CEST 2006


Hi,

How do you look at eventhandlers behaviour ? I am trying to see what it 
is doing but cant find logs that help. For instance, i am using a 
restart-http eventhandlers on the nagios server i am running. The scritp 
works by hand:
/usr/local/nagios/eventhandlers/restart-http CRITICAL SOFT 2
launches the apache service.

the script is the one taken from the nagios documentation.

In my services.cfg i got:
# Service definition
define service{
         use                             generic-service         ; Name 
of service template to use

         host_name                       linuxserver
         service_description             Apache2
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           5
         retry_check_interval            1
         event_handler                   restart-http
         contact_groups                  admins
         notification_interval           0
         notification_period             24x7
         notification_options            c,r
         check_command                   check_apache2!10.1.1.13
         }
and in miscommands.cfg :

define command{
         command_name    restart-http
         command_line    /usr/local/nagios/eventhandlers/restart-http 
$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$
         }
However, the nagios.log and status.log files doesnt give eventhandler 
output and the service is not restarted when i stop it for testing.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list