check_ldap strangeness

Thomas tguthmann at cvf.fr
Mon Sep 16 12:45:43 CEST 2002


Works fine for me

# 'check_ldap' commande execution
define command{
        command_name    check_ldap
        command_line    $USER1$/check_ldap -H $HOSTADDRESS$ -w $ARG1$ -c 
$ARG2$
        }

and in the service config file :

       check_command                   check_ldap!5!10

Simple ;)

Nagios: 1.0.5b
Plugin: 1.3-beta1

But I haven't try with the "-b" option

Good luck


Jamin wrote:

>I am running check_ldap (nagios-plugins 1.3.0-alpha1) version 1.1.1.1 and 
>am getting some strange behavior.
>
>If someone else who is running ldap server let me know if their plugin is 
>working, that would be great.  It seems to me that the $HOSTADDRESS$ 
>variable is not being transfered to nagios correctly.
>
># 'check_ldap' command definition
>define command{
>        command_name check_ldap
>        command_line $USER1$/check_ldap -H $HOSTADDRESS$ -p 389 -b "o=Acme Industries, c=us" -w 5 -c 120
>}
>
>If I replace the $HOSTADDRESS$ variable with a real IP, the plugin works 
>fine.  If I keep it the same, the IP is not passed correctly when it gets 
>executed and reports an error saying it could not connect to port 389.
>
>If you are wondering, the host ip is correct becuase the oter services on 
>the host report back fine too. 
>
>-Jamin
>
>----------------------------------------------------------------------
>"If tautology is a good word for circular reasoning, then shouldn't it
> be its own definition?"                  
>----------------------------------------------------------------------
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
>  
>





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list