From c0592256529695617db68a06b8a3cdb40c774440 Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Thu, 5 Mar 2020 16:50:53 +0100 Subject: [PATCH] Changed poller member validation step and message (#11239) --- LibreNMS/Validations/Poller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LibreNMS/Validations/Poller.php b/LibreNMS/Validations/Poller.php index ca2dac04bf..d4f3d0a2ec 100644 --- a/LibreNMS/Validations/Poller.php +++ b/LibreNMS/Validations/Poller.php @@ -89,16 +89,16 @@ class Poller extends BaseValidation $pollers = dbFetchColumn($sql); if (count($pollers) > 0) { foreach ($pollers as $poller) { - $validator->fail("The poller ($poller) has not completed within the last 5 minutes, check the cron job."); + $validator->fail("The poller ($poller) has not completed within the last $period seconds, check the cron job."); } } } elseif (dbFetchCell('SELECT COUNT(*) FROM `poller_cluster`')) { - $sql = "SELECT `node_id` FROM `poller_cluster` WHERE `last_report` <= DATE_ADD(NOW(), INTERVAL - 5 MINUTE)"; + $sql = "SELECT `node_id` FROM `poller_cluster` WHERE `last_report` <= DATE_ADD(NOW(), INTERVAL - $period SECOND)"; $pollers = dbFetchColumn($sql); if (count($pollers) > 0) { foreach ($pollers as $poller) { - $validator->fail("The poller cluster member ($poller) has not checked in within the last 5 minutes, check that it is running and healthy."); + $validator->fail("The poller cluster member ($poller) has not checked in within the last $period seconds, check that it is running and healthy."); } } } else {