Hi Clément,
It works perfectly: # /usr/lib/nagios/plugins/check_ldap_monitor.pl -vv -P 'password' -H ip_server -D cn=admin,cn=config -w5 -c10 -T totalmodify VERBOSE 2 ===> Connected to ldap://ip_server VERBOSE 2 ===> Bind with cn=admin,cn=config VERBOSE 2 ===> Found value 561 CRITICAL - 561 total MODIFY operations returned # /usr/lib/nagios/plugins/check_ldap_monitor.pl -vv -P 'password' -H ip_server -D cn=admin,cn=config -b cn=Modify,cn=Operations,cn=Monitor -w5 -c10 -T totalmodify VERBOSE 2 ===> Connected to ldap://ip_server VERBOSE 2 ===> Bind with cn=admin,cn=config VERBOSE 2 ===> Found value 561 CRITICAL - 561 total MODIFY operations returned Thanks very much! 2014-09-13 3:16 GMT-05:00 Clément OUDOT <clem.ou...@gmail.com>: > > > 2014-09-12 19:05 GMT+02:00 Francois Gnu <gnu...@gmail.com>: > >> Hi Clément, >> >> >> Here with -vv option: >> >> # /usr/lib/nagios/plugins/check_ldap_monitor.pl -vv -P 'password' -H >> ip_server -D cn=admin,cn=config -b cn=monitor -w10 -c40 -T totalmodify >> VERBOSE 2 ===> Connected to ldap://ip_server >> VERBOSE 2 ===> Bind with cn=admin,cn=config >> Use of uninitialized value $result in concatenation (.) or string at >> /usr/lib/nagios/plugins/check_ldap_monitor.pl line 394, <DATA> line 751. >> VERBOSE 2 ===> Found value >> Use of uninitialized value $value in numeric lt (<) at >> /usr/lib/nagios/plugins/check_ldap_monitor.pl line 596, <DATA> line 751. >> Use of uninitialized value $value in concatenation (.) or string at >> /usr/lib/nagios/plugins/check_ldap_monitor.pl line 597, <DATA> line 751. >> OK - total MODIFY operations returned >> >> >> But, when i do a ldapsearch i have: >> # ldapsearch -xWLLL -D cn=admin,cn=config -s base -b >> cn=Modify,cn=Operations,cn=Monitor "(objectClass=*)" monitorOpCompleted >> Enter LDAP Password: >> dn: cn=Modify,cn=Operations,cn=Monitor >> monitorOpCompleted: 297 >> >> > > Hi, > > you don't need to specify the -b option in check_ldap_monitor.pl command, > or if you define it, use the good value, like > "cn=Modify,cn=Operations,cn=Monitor". But just removing the option should > work. > > > > Clément. >
_______________________________________________ ltb-users mailing list ltb-users@lists.ltb-project.org http://lists.ltb-project.org/listinfo/ltb-users