Browse Source

Update 'plugins/edirectory_monitor/lib.py'

Michael Honkoop 2 months ago
parent
commit
141d52485b
1 changed files with 36 additions and 1 deletions
  1. 36 1
      plugins/edirectory_monitor/lib.py

+ 36 - 1
plugins/edirectory_monitor/lib.py

@@ -16,6 +16,10 @@ from cmk.agent_based.v2 import (
     Service,
 )
 
+ignored_items = [
+    "IDM jvm_stats",
+]
+
 uptime_attributes = [
     "Status_eDirectoryUpTime",
 ]
@@ -55,6 +59,34 @@ non_graphable_attributes = [
     "Scheduler_Id",
     "Handler_lock",
     "Handler_state",
+    "IDM jvm_stats",
+    "IDM job_stats",
+    "system_properties",
+]
+idm_nongraphable_attributes = [
+    "arch",
+    "average_load",
+    "comitted",
+    "configuration",
+    "containment",
+    "downTime",
+    "DriverDN",
+    "driver-state",
+    "id",
+    "initial",
+    "JobDN",
+    "lock",
+    "name",
+    "processors",
+    "startOption",
+    "state",
+    "status",
+    "total",
+    "type",
+    "uptime",
+    "upTime",
+    "used",
+    "version",
 ]
 
 total_counter_attributes = [
@@ -89,6 +121,7 @@ total_counter_attributes = [
     "HitLooks_Total",
     "HitLooks_BlockCache",
     "HitLooks_EntryCache",
+    "Thread_Stats_Total_Shared_Count",
 ]
 
 def format_partition_agent(value):
@@ -129,4 +162,6 @@ def discover_edirectory_items(section) -> DiscoveryResult:
     for key, data in section.items():
         '''Yield a Service, unless the key is empty'''
         if len(key) != 0:
-            yield Service(item=key)
+            if not key.startswith("IDM jvm_stats"):
+                print(key)
+                yield Service(item=key)