(no subject)

Jon Lyons jlyons30 at yahoo.com
Mon Oct 28 22:18:41 CET 2002


Not sure if you really want; (not sure what event_handler does)
 event_handler                   restart-daemon
Try;
 check_command         restart-daemon
 Mohammad Ghaeini <mohammad at cerberian.com> wrote:

Hi,

 

I get an error in setting up the following event handler service.  Here is my setup:

 

Service.cfg:

 

define service{

        use                             generic-service

        host_name                       devlinux

        service_description            TESTD

        is_volatile                          0

        check_period                    workhours

        max_check_attempts          4

        normal_check_interval         5

        retry_check_interval            1

        event_handler                   restart-daemon

        }



 

misccommands.cfg:

 

define command{

        command_name    restart-daemon

        command_line    /usr/local/nagios/libexec/eventhandlers/restart-daemon  $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$

        }

 

nagios –v nagios.cfg results:

 

Error: Service description, host name, or check command is NULL

 

Error: Could not register service (config file '/usr/local/nagios/etc/services.cfg', line 402)

 

Where line 402 begins with:

 

define service{

 

of the TESTD service, as described above.

 

What am I missing?

 

Thanks in advance.

 

-M.



---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021028/b39250d9/attachment.html>


More information about the Users mailing list