From 464d5a5ed84a50d88ca071ead38a29259fffc9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Mon, 18 Oct 2021 20:18:18 +0300 Subject: [PATCH] Issue logout in the end of scrape --- mikrotik.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mikrotik.py b/mikrotik.py index 20ce2df..4ff0388 100755 --- a/mikrotik.py +++ b/mikrotik.py @@ -150,6 +150,8 @@ async def scrape_mikrotik(target, port): yield "system_health_%s" % key.replace("-", "_"), "gauge", 1, labels else: yield "system_health_%s" % key.replace("-", "_"), "gauge", value, labels + + mk.query("/logout") mk.close()