Jelajahi Sumber

Update 'plugins/edirectory_monitor/agent_based/edirectory_monitor_dclient.py'

Michael Honkoop 1 hari lalu
induk
melakukan
53f3cf4103

+ 1 - 1
plugins/edirectory_monitor/agent_based/edirectory_monitor_dclient.py

@@ -66,7 +66,7 @@ def check_edirectory_items(item: str, params: Mapping[str, Any], section) -> Che
                 if (item_detail + "_" + key) in total_counter_attributes:
                     previous_value = value_store.get(key, 0)
                     value_store[key] = value
-                    if (previous_value > value):
+                    if (int(previous_value) > int(value)):
                         previous_value = 0
                     value_difference = int(value) - int(previous_value)
                     yield from check_levels(