diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2020-01-24 12:08:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 12:08:56 +0300 |
commit | f1d133190bda44504a7f55834ec626ab4e3d32ee (patch) | |
tree | 0c2014011545a61b37066c8dafd1ad43d4e7cc32 /collectors/python.d.plugin/openldap | |
parent | 6a3ad766bd48b7ee89fb14772a56b41d518cbd63 (diff) |
collectors/python.d: format modules code (#7832)
* collectors/python.d/adaptec_raid: format code
* collectors/python.d/am2320: format code
* collectors/python.d/apache: format code
* collectors/python.d/beanstalk: format code
* collectors/python.d/bind_rndc: format code
* collectors/python.d/boinc: format code
* collectors/python.d/ceph: format code
* collectors/python.d/couchdb: format code
* collectors/python.d/dns_query_time: format code
* collectors/python.d/dnsdist: format code
* collectors/python.d/dockerd: format code
* collectors/python.d/dovecot: format code
* collectors/python.d/energid: format code
* collectors/python.d/example: format code
* collectors/python.d/exim: format code
* collectors/python.d/fail2ban: format code
* collectors/python.d/freeradius: format code
* collectors/python.d/gearman: format code
* collectors/python.d/go_expvar: format code
* collectors/python.d/haproxy: format code
* collectors/python.d/hddtemp: format code
* collectors/python.d/hpssa: format code
* collectors/python.d/httpcheck: format code
* collectors/python.d/icecast: format code
* collectors/python.d/ipfs: format code
* collectors/python.d/isc_dhcpd: format code
* collectors/python.d/litespeed: format code
* collectors/python.d/megacli: format code
* collectors/python.d/memcached: format code
* collectors/python.d/mongodb: format code
* collectors/python.d/mysql: format code
* collectors/python.d/nginx: format code
* collectors/python.d/nginx_plus: format code
* collectors/python.d/nsd: format code
* collectors/python.d/ntpd: format code
* collectors/python.d/openldap: format code
* collectors/python.d/oracledb: format code
* collectors/python.d/ovpn_status_log: format code
* collectors/python.d/phpfpm: format code
* collectors/python.d/portcheck: format code
* collectors/python.d/powerdns: format code
* collectors/python.d/proxysql: format code
* collectors/python.d/puppet: format code
* collectors/python.d/redis: format code
* collectors/python.d/rethinkdbs: format code
* collectors/python.d/retroshare: format code
* collectors/python.d/riakkv: format code
* collectors/python.d/samba: format code
* collectors/python.d/sensors: format code
* collectors/python.d/smartd_log: format code
* collectors/python.d/spigotmc: format code
* collectors/python.d/springboot: format code
* collectors/python.d/squid: format code
* collectors/python.d/tomcat: format code
* collectors/python.d/tor: format code
* collectors/python.d/traefik: format code
* collectors/python.d/unbound: format code
* collectors/python.d/uwsgi: format code
* collectors/python.d/varnish: format code
* collectors/python.d/w1sensor: format code
* collectors/python.d/weblog: format code
Diffstat (limited to 'collectors/python.d.plugin/openldap')
-rw-r--r-- | collectors/python.d.plugin/openldap/openldap.chart.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/collectors/python.d.plugin/openldap/openldap.chart.py b/collectors/python.d.plugin/openldap/openldap.chart.py index 3266ce4000..d577e71739 100644 --- a/collectors/python.d.plugin/openldap/openldap.chart.py +++ b/collectors/python.d.plugin/openldap/openldap.chart.py @@ -5,13 +5,13 @@ try: import ldap + HAS_LDAP = True except ImportError: HAS_LDAP = False from bases.FrameworkServices.SimpleService import SimpleService - DEFAULT_SERVER = 'localhost' DEFAULT_PORT = '389' DEFAULT_TLS = False @@ -110,7 +110,7 @@ SEARCH_LIST = { 'add_operations': ( 'cn=Add,cn=Operations,cn=Monitor', 'monitorOpInitiated', ), - 'delete_operations': ( + 'delete_operations': ( 'cn=Delete,cn=Operations,cn=Monitor', 'monitorOpCompleted', ), 'modify_operations': ( @@ -193,7 +193,7 @@ class Service(SimpleService): num = self.conn.search(dn, ldap.SCOPE_BASE, 'objectClass=*', [attr, ]) result_type, result_data = self.conn.result(num, 1) except ldap.LDAPError as error: - self.error("Empty result. Check bind username/password. Message: ",error) + self.error("Empty result. Check bind username/password. Message: ", error) self.alive = False return None |