check_ldap! not working right in services.cfg

RR scubacuda at gmail.com
Tue Jun 19 16:42:11 CEST 2007


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070619/37ba832d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list