(no subject)

Mohammad Ghaeini mohammad at cerberian.com
Mon Oct 28 23:07:59 CET 2002


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021028/d6285fcb/attachment.html>


More information about the Users mailing list