|
@@ -9,12 +9,9 @@
|
|
|
import re
|
|
|
import pytz
|
|
|
import datetime
|
|
|
-import time
|
|
|
from dateutil import tz
|
|
|
|
|
|
from cmk.agent_based.v2 import (
|
|
|
- get_rate,
|
|
|
- GetRateError,
|
|
|
DiscoveryResult,
|
|
|
Service,
|
|
|
)
|
|
@@ -34,7 +31,7 @@ time_attributes_ignored = [
|
|
|
"CheckPointThreadData_CheckPointThreadStartTime",
|
|
|
]
|
|
|
|
|
|
-non_graphable = [
|
|
|
+non_graphable_attributes = [
|
|
|
"Status_eDirectorySystemCurrTime",
|
|
|
"Status_eDirectoryUpTime",
|
|
|
"Status_eDirectoryAgentVersion",
|
|
@@ -44,9 +41,9 @@ non_graphable = [
|
|
|
"Size_CurrentTransactionID",
|
|
|
]
|
|
|
|
|
|
-total_counters = [
|
|
|
- "Trafficvolume_inBytes",
|
|
|
- "Trafficvolume_outBytes",
|
|
|
+total_counter_attributes = [
|
|
|
+ "TrafficVolume_inBytes",
|
|
|
+ "TrafficVolume_outBytes",
|
|
|
"Errors_securityErrors",
|
|
|
"Errors_errors",
|
|
|
"Bindings_simpleAuthBinds",
|
|
@@ -67,6 +64,13 @@ total_counters = [
|
|
|
"IncomingOperations_readOps",
|
|
|
"IncomingOperations_inOps",
|
|
|
"OutgoingOperations_chainings",
|
|
|
+ "CacheFaultLooks_Total",
|
|
|
+ "Hits_Total",
|
|
|
+ "Hits_BlockCache",
|
|
|
+ "Hits_EntryCache",
|
|
|
+ "HitLooks_Total",
|
|
|
+ "HitLooks_BlockCache",
|
|
|
+ "HitLooks_EntryCache",
|
|
|
]
|
|
|
|
|
|
def format_partition_agent(value):
|
|
@@ -100,4 +104,4 @@ def parse_ldap_data(string_table):
|
|
|
def discover_edirectory_items(section) -> DiscoveryResult:
|
|
|
'''discover one item per key'''
|
|
|
for key, data in section.items():
|
|
|
- yield Service(item=key)
|
|
|
+ yield Service(item=key)
|