diff --git a/LibreNMS/Exceptions/InvalidNameException.php b/LibreNMS/Exceptions/InvalidNameException.php index 12f91f54bc..4e61550539 100644 --- a/LibreNMS/Exceptions/InvalidNameException.php +++ b/LibreNMS/Exceptions/InvalidNameException.php @@ -25,8 +25,6 @@ namespace LibreNMS\Exceptions; - class InvalidNameException extends \Exception { - } diff --git a/LibreNMS/Validations/DistributedPoller.php b/LibreNMS/Validations/DistributedPoller.php index f33900f1a3..6e8cc27a83 100644 --- a/LibreNMS/Validations/DistributedPoller.php +++ b/LibreNMS/Validations/DistributedPoller.php @@ -70,6 +70,7 @@ class DistributedPoller extends BaseValidation if (PollerCluster::isActive()->exists()) { $validator->info('Detected Dispatcher Service'); $this->checkDispatcherService($validator); + return; } @@ -98,13 +99,13 @@ class DistributedPoller extends BaseValidation $node = PollerCluster::firstWhere('node_id', config('librenms.node_id')); if (! $node->exists) { $validator->fail('Dispatcher service is enabled on your cluster, but not in use on this node'); + return; } if ($node->last_report->lessThan(Carbon::now()->subSeconds($node->getSettingValue('poller_frequency')))) { $validator->fail('Dispatcher service has not reported stats within the last poller window'); } - } private function checkPythonWrapper(Validator $validator)