Nagois event_handler query


#1

Hi,

I have modified localhost.cfg as follows :
define service{
use local-service
host_name localhost
service_description HTTP
max_check_attempts 4
event_handler restart-httpd
event_handler_enabled 1
notifications_enabled 0
check_command check_http
}

When I restart nagios service I get following error :
Running configuration check… CONFIG ERROR! Restart aborted. Check your Nagios configuration.

When I comment the “event_handler restart-httpd”, the service can be restarted.

I am using nagios 3.2.0.

Can anyone tell me what is wrong and how do I work with event_handler.

Thanks.

Rgds,
Bhushan


#2

Hi,

My mistake. I defined command in wrong file. I created a wrong file as command.cfg instead of commands.cfg.

Rgds,
Bhushan