監視 OpenLDAP
在您安裝 Instana 代理程式之後,會自動部署並安裝 OpenLDAP 感應器。
配置
這是啟用並配置 OpenLDAP 監視模組的必要條件。
OpenLDAP 配置
檢查在 OpenLDAP 安裝上是否已啟用監視模組:
ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=module{0},cn=config"如果回應中包含
olcModuleLoad: {1}back_monitor,則會啟用監視模組。 您可以跳至步驟 3。若要啟用監視模組,請建立
module_monitoring.ldif檔案並執行下列指令:dn: cn=module{0},cn=config changetype: modify add: olcModuleLoad olcModuleLoad: {1}back_monitorldapmodify -Y EXTERNAL -H ldapi:/// -f module_monitor.ldif建立監視使用者的加密密碼:
slapdpasswd -s <MONITOR_USER_PASSWORD>建立
cn_monitor.ldif檔案,並執行下列指令以新增監視使用者:dn: <NEW_MONITORING_USER_DISTINGUISHED_NAME> objectClass: simpleSecurityObject objectClass: organizationalRole cn: <COMMON_NAME_OF_THE_NEW_MONITORING_USER> description: LDAP monitor userPassword: <ENCRYPTED_PASSWORD>ldapadd -x -D <ADMIN_DISTINGUISHED_NAME> -w <ADMIN_PASSWORD> -f cn_monitor.ldif建立
database_monitor.ldif檔案,並執行下列指令來配置監視資料庫:dn: olcDatabase={2}Monitor,cn=config objectClass: olcDatabaseConfig objectClass: olcMonitorConfig olcDatabase: {2}Monitor olcAccess: {0}to dn.subtree="cn=Monitor" by dn.base="<NEW_MONITORING_USER_DISTINGUISHED_NAME>" read by * noneldapadd -Y EXTERNAL -H ldapi:/// -f database_monitor.ldif若要測試監視模組,請執行下列指令:
ldapsearch -x -D <NEW_MONITORING_USER_DISTINGUISHED_NAME> -w <MONITOR_USER_PASSWORD> -b cn=Uptime,cn=Time,cn=Monitor -s base '(objectClass=*)' '*' '+'
代理程式配置
若要啟用深度度量值監視,代理程式需要監視使用者的認證,才能存取監視資訊。
您可以在下列代理程式中配置它: <agent_install_dir>/etc/instana/configuration.yaml:
com.instana.plugin.openldap:
user: '' # distinguished name of monitoring user, like 'cn=Monitor,dc=example,dc=com'
password: '' # password for monitoring user
port: 10389 # default is 389
schemaPath: '/opt/GC/data/slapd.d/' # schema files location
度量值集合
若要檢視度量值,請在「Instana 使用者」介面的資訊看板中選取 基礎架構 ,按一下特定的受監視主機,然後您可以看到包含所有已收集度量值及受監視處理程序的主機儀表板。
配置資料
| OpenLDAP 伺服器詳細資料 | 說明 |
|---|---|
| 開始時間 | OpenLDAP 伺服器啟動的時間。 |
| DN | 已配置識別名稱。 |
| CN | 已配置通用名稱。 |
| 物件類別 | 已配置 ObjectClass (屬性集合)。 |
| 引數檔案 | 已啟動具有 wich OpenLDAP 的指令行引數。 |
| PID 檔案 | 執行 OpenLDAP的現行 PID。 |
| 記載層次 | 執行 OpenLDAP的記載層次。 |
| 工具執行緒 | 要在工具模式中使用的執行緒數目上限。 |
效能度量
| OpenLDAP 伺服器度量值 | 說明 |
|---|---|
| 作業 | 透過資料庫完成/起始的所有作業計數。 |
| 連線 | 所有連線總數/現行數目。 |
| 位元組 | 資料流量 (以位元組為單位)。 |
| 項目 | 項目數。 |
| Pdus | 通訊協定資料單元數目。 |
| 轉介 | 推薦數。 |
| 等待者讀取 | 已封鎖等待從用戶端讀取資料的執行緒數。 |
| 等待者寫入 | 已封鎖等待將資料寫入用戶端的執行緒數。 |
| Threads active | Slapd 中目前作用中的執行緒 (作業)。 |
| 擱置中的執行緒數 | 目前在 slapd 中擱置的執行緒 (作業)。 |