Have a weird behavior on our Nagios Server.
When we execute the script on the remote host, it works perfectly, but not trough the nrpe:
Code: Select all
define command {
command_name Scd_check_ldap6
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 6666 -t 30 -c check_ldap6 --v2-packets-only
}
Code: Select all
define service {
service_description Scd_check_ldap xxxxxxxxx
host_name SN1MSF03
use generic-service
check_command Scd_check_ldap6!
contact_groups winbasis_admin
}
Code: Select all
/home/scd/Basis_Nagios/plugins/check_ldap -H 'xxxxxxx' -b '' --port=9007 -D 'cn=moni,cn=Acc' -P 'xxxxxxxxxx' -2 --ssl
LDAP OK - 0.040 seconds response time|time=0.040031s;;;0.000000
Code: Select all
/omd/sites/winnagio/lib/nagios/plugins/check_nrpe -H 'xxxxx' -p '6666' -t 60 -c check_ldap6 --v2-packets-only
Could not bind to the LDAP server
I have other Ldap checks on the remote hosts, which are not -ssl and they work perfectly, might this be related to the RootCA´s on the remote Server?
Anyway i am just asking Nrpe to return the output of the ldap plugin. What am i missing ?
Thanks,
Fred