Ver Fonte

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

Michael Honkoop há 1 dia atrás
pai
commit
d875afe1ca

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

@@ -110,7 +110,7 @@ def check_edirectory_items(item: str, params: Mapping[str, Any], section) -> Che
             '''create a metric which is the difference between previous check value and current check value'''
             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 Metric(key, math.ceil(int(value_difference)), boundaries=(0, None))