From da57ea65f641f630967922591bbb77a655571337 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 14 Oct 2021 19:41:35 -0500 Subject: [PATCH] Dispatcher: Don't update poller groups when updating stats (#13363) * Dispatcher: Don't update workers/frequency when updating stats * Fix the right thing * Don't set poller groups on the cluster entry, this way config.php can override if it hasn't been set by the webui --- LibreNMS/service.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/LibreNMS/service.py b/LibreNMS/service.py index bd3dea460e..05557bb647 100644 --- a/LibreNMS/service.py +++ b/LibreNMS/service.py @@ -789,13 +789,12 @@ class Service: try: # Report on the poller instance as a whole self._db.query( - "INSERT INTO poller_cluster(node_id, poller_name, poller_version, poller_groups, last_report, master) " - 'values("{0}", "{1}", "{2}", "{3}", NOW(), {4}) ' - 'ON DUPLICATE KEY UPDATE poller_version="{2}", poller_groups="{3}", last_report=NOW(), master={4}; '.format( + "INSERT INTO poller_cluster(node_id, poller_name, poller_version, last_report, master) " + 'values("{0}", "{1}", "{2}", NOW(), {3}) ' + 'ON DUPLICATE KEY UPDATE poller_version="{2}", last_report=NOW(), master={3}; '.format( self.config.node_id, self.config.name, "librenms-service", - ",".join(str(g) for g in self.config.group), 1 if self.is_master else 0, ) )