check_ldap! not working right in services.cfg

Marc Powell marc at ena.com
Tue Jun 19 17:16:24 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of RR
> Sent: Tuesday, June 19, 2007 9:42 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_ldap! not working right in services.cfg
> 


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

You'll want to use a brace { to start the definition, not parenthesis (.

--
Marcvi 

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





More information about the Users mailing list