Browse Source

Update 'plugins/edirectory_monitor/lib.py'

Michael Honkoop 3 months ago
parent
commit
09c7816783
1 changed files with 7 additions and 0 deletions
  1. 7 0
      plugins/edirectory_monitor/lib.py

+ 7 - 0
plugins/edirectory_monitor/lib.py

@@ -65,6 +65,8 @@ total_counter_attributes = [
     "IncomingOperations_inOps",
     "OutgoingOperations_chainings",
     "CacheFaultLooks_Total",
+    "CacheFaultLooks_BlockCache",
+    "CacheFaultLooks_EntryCache",
     "Hits_Total",
     "Hits_BlockCache",
     "Hits_EntryCache",
@@ -78,6 +80,11 @@ def format_partition_agent(value):
     formatted = re.sub('CN=|OU=|O=|T=', '', value).replace("=", " ").replace(" ", "").split("#")
     return formatted
 
+def format_partition_data(value):
+    """strip unwanted data from Agent Partition data"""
+    formatted = re.sub('CN=|OU=|O=', '', value).replace(',', '.')
+    return formatted
+
 def convert_timestamp(value):
     """convert Zulu time to current time in local timezone"""
     utc_dt = datetime.datetime.strptime(str(value), "%Y%m%d%H%M%SZ")