diff --git a/report_non_ok_svc/CHANGELOG.md b/report_non_ok_svc/CHANGELOG.md new file mode 100644 index 0000000..05c7751 --- /dev/null +++ b/report_non_ok_svc/CHANGELOG.md @@ -0,0 +1,14 @@ +# 0.0.1 + +> 08 Aug 2021 + +* Change name of report to "Day-Night No Transition" +* Add `$filter_services` global variable in `index.php` to allow for matching service statuses to be filtered against + * With default value of "plugin timed out" (anything matching this text will be filtered out of the final services) +* Change order of report + +# 0.0.0 + +> 31 Jul 2021 + +* Initial version diff --git a/report_non_ok_svc/index.php b/report_non_ok_svc/index.php index 05884b8..51e974a 100644 --- a/report_non_ok_svc/index.php +++ b/report_non_ok_svc/index.php @@ -10,6 +10,8 @@ check_authentication(false); generate_report(); +$filter_services = array("plugin timed out"); + function generate_report() { @@ -24,6 +26,9 @@ Light Mode – Night The report would show: Host Name, Host Address, Service Description, Status Information, and Duration (hours) + +Addendum: +We would need the services that have "CRITICAL - Plugin timed out while executing system call" as the status to be filtered out */ $default_services = " Day Mode @@ -43,7 +48,6 @@ Host Name, Host Address, Service Description, Status Information, and Duration ( $service_array = array_map(function($el) { return trim($el); }, $service_array); $service_array = array_filter($service_array, function($el) { return !empty($el); }); - do_page_start(array("page_title" => "Non-OK Services Report"), true); echo '