(no subject)
Jonathan Rozes
jrozes at vinton.com
Mon Oct 28 22:24:44 CET 2002
Just like the error message says, you have no check_command defined for the
service. Define one and you should be in business.
jonathan
+++ Jonathan Rozes, Manager, Information Technology, Will Vinton Studios
-----Original Message-----
From: Mohammad Ghaeini [mailto:mohammad at cerberian.com]
Sent: Monday, October 28, 2002 2:08 PM
To: 'Nagios List'
Subject: [Nagios-users] (no subject)
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/ce2fcde5/attachment.html>
More information about the Users
mailing list