check_ldap! not working right in services.cfg

Duncan Ferguson duncan.ferguson at altinity.com
Tue Jun 19 16:50:48 CEST 2007


You need to braces - { and } - looks like you have a mixed bracket  
and a brace ( and }

   Duncs

On 19 Jun 2007, at 15:42, RR wrote:

> 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
> 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



-- 
Duncan Ferguson

Opsview - Making Nagios Easier

http://www.altinity.com
Tel: +44 (0)870 787 9243
Fax: +44 (0)845 280 1725
Skype: duncan_j_ferguson
MSN: duncan.ferguson at altinity.com


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