Whenever I run 'nagios -v nagios.cfg', I get the following error:
Error: Service check command 'check_ldap' specified in service
'server-check_ldap' for host 'ldap-server' not defined anywhere!
       Checked 36 services.

But it doesn't work when I edit my commands.cfg file to include the
following:

define command(
       command_name    check_ldap
       command_line    $USER1$/check_ldap -H $HOSTADDRESS$ -b $ARG1$
       }

After I add the above statement to cmy command.cfg file, I get

Error: Invalid object definition type 'command(' in file
'/etc/nagios/commands.cfg' on line 64.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to