Page 1 of 1
Cannot do ldap bind check with Nagios XI
Posted: Thu Aug 25, 2011 1:48 pm
by svetlanamutu
Hello,
We are thinking about purchasing Nagios XI, and I am evaluating it from the VM image provided for download. I cannot get check_ldap to work. I have similar setup of Nagios Core on a different machine and ldap-bind checks work fine. Is there a chance someone could help me with this? I specified the base DN, the account DN and password with version 2 of ldap. I get 'Could not bind to the ldap-server' error.
Please help!
Thanks,
Svetlana
Re: Cannot do ldap bind check with Nagios XI
Posted: Fri Aug 26, 2011 9:11 am
by nscott
svetlana,
What is the exact command you're running in Nagios XI and Nagios Core?
Re: Cannot do ldap bind check with Nagios XI
Posted: Fri Aug 26, 2011 10:32 am
by svetlanamutu
Monitor the service with this command:
check_xi_service_ldap!-b "dc=a,dc=b,dc=c" -D "CN=abc,OU=abc abc,OU=abc,DC=a,DC=b,DC=c" -P "*****************************" -3
I tried this as well:
check_xi_service_ldap!-b "dc=a,dc=b,dc=c" -D "CN=abc,OU=abc abc,OU=abc,DC=a,DC=b,DC=c" -P "*****************************" -2
check_xi_service_ldap command definition in Nagios Core (this is part of the same Nagios XI instance):
$USER1$/check_ldap -H $HOSTADDRESS$ $ARG1$ $ARG2$
I added $ARG2$ to the command because $ARG2$ line underneath command definition in Nagios Core had part of the arguments in $ARG2$ line but that line was not included in the command definition.
Same command configuration and service check "check_ldap -H $HOSTADDRESS$ $ARG1$ $ARG2$" with the same arguments passed work on a different Nagios instance.
Is there anything that has to be configured in open_ldap config file on the same machine whrere Nagios is running?
Thanks for your help.
Svetlana
Re: Cannot do ldap bind check with Nagios XI
Posted: Fri Aug 26, 2011 11:10 am
by svetlanamutu
I got it to work once I defined MACROs for DN and password for the account that reads the ldap directory. Thanks.
Re: Cannot do ldap bind check with Nagios XI
Posted: Fri Aug 26, 2011 2:50 pm
by lmiltchev
Great! Thanks for the feedback!