From d0503fbdef8ed3728ba8c5bf5ea4dba6c86b1e27 Mon Sep 17 00:00:00 2001 From: Nash Kaminski <36900518+gs-kamnas@users.noreply.github.com> Date: Wed, 27 Jul 2022 03:08:17 -0500 Subject: [PATCH] Fix 500 error in validation when UI containers and poller containers have differing node_ids (#14146) * Fix 500 error in validation when UI containers and poller containers have unique node_ids * Update DistributedPoller.php Co-authored-by: Tony Murray --- LibreNMS/Validations/DistributedPoller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Validations/DistributedPoller.php b/LibreNMS/Validations/DistributedPoller.php index c38c978396..37f08c22be 100644 --- a/LibreNMS/Validations/DistributedPoller.php +++ b/LibreNMS/Validations/DistributedPoller.php @@ -99,7 +99,7 @@ class DistributedPoller extends BaseValidation } $node = PollerCluster::firstWhere('node_id', config('librenms.node_id')); - if (! $node->exists) { + if (is_null($node)) { $validator->fail('Dispatcher service is enabled on your cluster, but not in use on this node'); return;