Issue #843 has been updated by Truong Ta.

Found soultion:
* Cacti: upgrade to 0.8.8c to avoid slashes in script_path: 
https://github.com/Cacti/cacti/commit/c19bfc4d3ab9395f1a72483ef9e4d16bc7908818
* Update input string for both plug-ins (add double quotes to <binddn> and 
<suffix>):
<pre>
perl <path_cacti>/scripts/openldap_operations.pl -h <hostname> -p <port> -D 
"<binddn>" -W  <bindpw> -t <timeout> -v <ldap_version>
perl <path_cacti>/scripts/ldap_response_time.pl -h <hostname> -p <port> -D 
"<binddn>" -W  <bindpw> -t <timeout> -v <ldap_version> -s "<suffix>"
</pre>
----------------------------------------
Bug #843: OpenLDAP - initiated operations script can not handle connection 
account with space
http://tools.lsc-project.org/issues/843

Author: Truong Ta
Status: Assigned
Priority: Normal
Assigned to: Clément OUDOT
Category: Cacti plugins
Target version: cacti-plugins-0.4


My binddn is:
<pre>
uid=cacti,ou=Special Users,dc=XTDV,dc=ldap
</pre>

Cacti return error when polling:
<pre>
SPINE: Poller[0] Host[43] ERROR: Empty result [10.84.254.38]: 'perl 
/usr/share/cacti/site/scripts/openldap_operations.pl -h 10.84.254.38 -p 389 -D 
uid=cacti,ou=Special Users,dc=XTDV,dc=ldap -W xxxxxxxxx -t 5 -v 3'
</pre>

My temporary workaround is modify the file *openldap_operations.pl*, add one 
more line in Options Hash Table and remove -D <binddn> in Input String
<pre>
$opts{"D"} = "uid=cacti,ou=Special Users,dc=XTDV,dc=ldap" unless exists 
$opts{"D"};
</pre>

Cacti version: 0.8.8b


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev

Reply via email to