Whenever I run 'nagios -v nagios.cfg', I get the following error:<div><br class="webkit-block-placeholder"></div><div><div>Error: Service check command 'check_ldap' specified in service 'server-check_ldap' for host 'ldap-server' not defined anywhere!
</div><div>        Checked 36 services.</div><br class="webkit-block-placeholder"></div><div>But it doesn't work when I edit my commands.cfg file to include the following:</div><div><br class="webkit-block-placeholder">
</div><div><div>define command(</div><div>        command_name    check_ldap</div><div>        command_line    $USER1$/check_ldap -H $HOSTADDRESS$ -b $ARG1$</div><div>        }</div><br class="webkit-block-placeholder"></div>
<div>After I add the above statement to cmy command.cfg file, I get </div><div><br class="webkit-block-placeholder"></div><div>Error: Invalid object definition type 'command(' in file '/etc/nagios/commands.cfg' on line 64.
</div><div><br class="webkit-block-placeholder"></div><div></div>