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
Cannot do ldap bind check with Nagios xi
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Cannot do ldap bind check with Nagios xi
svetlana,
What is the exact command you're running in Nagios xi and Nagios Core?
What is the exact command you're running in Nagios xi and Nagios Core?
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 3
- Joined: Thu Aug 25, 2011 1:28 pm
Re: Cannot do ldap bind check with Nagios xi
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
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
-
- Posts: 3
- Joined: Thu Aug 25, 2011 1:28 pm
Re: Cannot do ldap bind check with Nagios xi
I got it to work once I defined MACROs for DN and password for the account that reads the ldap directory. Thanks.
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Cannot do ldap bind check with Nagios xi
Great! Thanks for the feedback!
Be sure to check out our Knowledgebase for helpful articles and solutions!