diff --git a/html/includes/table/poll-log.inc.php b/html/includes/table/poll-log.inc.php index 722c47d314..55efcb34b8 100644 --- a/html/includes/table/poll-log.inc.php +++ b/html/includes/table/poll-log.inc.php @@ -19,6 +19,10 @@ if (isset($searchPhrase) && !empty($searchPhrase)) { $sql .= " AND (hostname LIKE '%$searchPhrase%' OR last_polled LIKE '%$searchPhrase%' OR last_polled_timetaken LIKE '%$searchPhrase%')"; } +if ($_POST['type'] == "unpolled") { + $sql .= " AND `last_polled` <= DATE_ADD(NOW(), INTERVAL - 15 minute)"; +} + if (!isset($sort) || empty($sort)) { $sort = 'last_polled_timetaken DESC'; } diff --git a/html/index.php b/html/index.php index 1005a83900..df6c720bc4 100644 --- a/html/index.php +++ b/html/index.php @@ -320,7 +320,7 @@ echo('
Powered by 0) { - $msg_box[] = array('type' => 'warning', 'message' => "It appears as though you have some devices that haven't completed polling within the last 15 minutes, you may want to check that out :)",'title' => 'Devices unpolled'); + $msg_box[] = array('type' => 'warning', 'message' => "It appears as though you have some devices that haven't completed polling within the last 15 minutes, you may want to check that out :)",'title' => 'Devices unpolled'); } if(is_array($msg_box)) { diff --git a/html/pages/poll-log.inc.php b/html/pages/poll-log.inc.php index ddeca02c8c..d85051976d 100644 --- a/html/pages/poll-log.inc.php +++ b/html/pages/poll-log.inc.php @@ -1,6 +1,9 @@ @@ -15,12 +18,24 @@ $pagetitle[] = 'Poll Log';