I can run check_ldap or check_ldaps from the command line and the check works without a hitch:
Code: Select all
[email protected] (Linux) $ /usr/local/nagios/libexec/check_ldaps -H ldap0001.example.com -p 636 -b "dc=example,dc=com" -D "uid=nagios_monitor,ou=privls,dc=example,dc=com" -P "supersecretpasswordgoeshere" -3
LDAP OK - 0.027 seconds response time|time=0.026954s;;;0.000000When I have Nagios run it (as a normally scheduled check), it fails with "Cannot bind to server"
Any ideas where to start to fix this?