You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
5.7 KiB

2 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3. <version>3.4</version>
  4. <date>2020-09-29T17:25:11Z</date>
  5. <groups>
  6. <group>
  7. <name>Templates</name>
  8. </group>
  9. </groups>
  10. <templates>
  11. <template>
  12. <template>external_ldap_check</template>
  13. <name>external_ldap_check</name>
  14. <description/>
  15. <groups>
  16. <group>
  17. <name>Templates</name>
  18. </group>
  19. </groups>
  20. <applications>
  21. <application>
  22. <name>ldap_check</name>
  23. </application>
  24. </applications>
  25. <items>
  26. <item>
  27. <name>ldap_check</name>
  28. <type>10</type>
  29. <snmp_community/>
  30. <snmp_oid/>
  31. <key>ldapsearch_check.sh[{HOST.CONN},{$LDAP_USER},{$LDAP_PASS}]</key>
  32. <delay>300s</delay>
  33. <history>90d</history>
  34. <trends>365d</trends>
  35. <status>0</status>
  36. <value_type>3</value_type>
  37. <allowed_hosts/>
  38. <units/>
  39. <snmpv3_contextname/>
  40. <snmpv3_securityname/>
  41. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  42. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  43. <snmpv3_authpassphrase/>
  44. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  45. <snmpv3_privpassphrase/>
  46. <params/>
  47. <ipmi_sensor/>
  48. <authtype>0</authtype>
  49. <username/>
  50. <password/>
  51. <publickey/>
  52. <privatekey/>
  53. <port/>
  54. <description/>
  55. <inventory_link>0</inventory_link>
  56. <applications>
  57. <application>
  58. <name>ldap_check</name>
  59. </application>
  60. </applications>
  61. <valuemap/>
  62. <logtimefmt/>
  63. <preprocessing/>
  64. <jmx_endpoint/>
  65. <master_item/>
  66. </item>
  67. <item>
  68. <name>ldap_answer_time</name>
  69. <type>10</type>
  70. <snmp_community/>
  71. <snmp_oid/>
  72. <key>ldapsearch_time.sh[{HOST.CONN},{$LDAP_USER},{$LDAP_PASS}]</key>
  73. <delay>300s</delay>
  74. <history>90d</history>
  75. <trends>365d</trends>
  76. <status>0</status>
  77. <value_type>0</value_type>
  78. <allowed_hosts/>
  79. <units>s</units>
  80. <snmpv3_contextname/>
  81. <snmpv3_securityname/>
  82. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  83. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  84. <snmpv3_authpassphrase/>
  85. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  86. <snmpv3_privpassphrase/>
  87. <params/>
  88. <ipmi_sensor/>
  89. <authtype>0</authtype>
  90. <username/>
  91. <password/>
  92. <publickey/>
  93. <privatekey/>
  94. <port/>
  95. <description/>
  96. <inventory_link>0</inventory_link>
  97. <applications>
  98. <application>
  99. <name>ldap_check</name>
  100. </application>
  101. </applications>
  102. <valuemap/>
  103. <logtimefmt/>
  104. <preprocessing/>
  105. <jmx_endpoint/>
  106. <master_item/>
  107. </item>
  108. </items>
  109. <discovery_rules/>
  110. <httptests/>
  111. <macros>
  112. <macro>
  113. <macro>{$LDAP_PASS}</macro>
  114. <value>Zabbix1</value>
  115. </macro>
  116. <macro>
  117. <macro>{$LDAP_USER}</macro>
  118. <value>uid=zabbixldap,ou=users,dc=swan,dc=perm,dc=ru</value>
  119. </macro>
  120. </macros>
  121. <templates/>
  122. <screens/>
  123. </template>
  124. </templates>
  125. <triggers>
  126. <trigger>
  127. <expression>{external_ldap_check:ldapsearch_check.sh[{HOST.CONN},{$LDAP_USER},{$LDAP_PASS}].last()}=0</expression>
  128. <recovery_mode>0</recovery_mode>
  129. <recovery_expression/>
  130. <name>ldap check failed</name>
  131. <correlation_mode>0</correlation_mode>
  132. <correlation_tag/>
  133. <url/>
  134. <status>0</status>
  135. <priority>3</priority>
  136. <description/>
  137. <type>0</type>
  138. <manual_close>0</manual_close>
  139. <dependencies/>
  140. <tags/>
  141. </trigger>
  142. <trigger>
  143. <expression>{external_ldap_check:ldapsearch_time.sh[{HOST.CONN},{$LDAP_USER},{$LDAP_PASS}].last()}&gt;25</expression>
  144. <recovery_mode>0</recovery_mode>
  145. <recovery_expression/>
  146. <name>ldap check time too long</name>
  147. <correlation_mode>0</correlation_mode>
  148. <correlation_tag/>
  149. <url/>
  150. <status>0</status>
  151. <priority>3</priority>
  152. <description/>
  153. <type>0</type>
  154. <manual_close>1</manual_close>
  155. <dependencies/>
  156. <tags/>
  157. </trigger>
  158. </triggers>
  159. </zabbix_export>

Powered by TurnKey Linux.