--- /root/Downloads/Nagdash/htdocs/nagdash.php 2017-09-13 14:23:42.343025349 +0200 +++ nagdash.php 2017-10-11 12:56:25.808018316 +0200 @@ -100,7 +100,7 @@ foreach ($down_hosts as $host) { echo ""; $tag = NagdashHelpers::print_tag($host['tag'], count($nagios_hosts)); - echo "{$host['hostname']} " . $tag . " "; + echo "{$host['hostname']} " . $tag . " "; NagdashHelpers::render('controls.php',[ "tag" => $host['tag'], "host" => $host['hostname'], "service" => '']); @@ -123,7 +123,7 @@ if ($this_host['is_downtime']) $status_text = "downtime"; if (!$this_host['is_enabled']) $status_text = "disabled"; $tag = NagdashHelpers::print_tag($this_host['tag'], count($nagios_hosts)); - $known_host_list[] = "{$this_host['hostname']} " . $tag . " ({$status_text} - {$this_host['duration']})"; + $known_host_list[] = "{$this_host['hostname']} " . $tag . " ({$status_text} - {$this_host['duration']})"; } $known_host_list_complete = implode(" • ", $known_host_list); echo "
Known Problem Hosts: {$known_host_list_complete}
"; @@ -152,12 +152,12 @@ $blink_tag = ($service['is_hard'] && $enable_blinking) ? "" : ""; $tag = NagdashHelpers::print_tag($service['tag'], count($nagios_hosts)); echo ""; - echo "{$service['hostname']} " . $tag . " "; + echo "{$service['hostname']} " . $tag . " "; NagdashHelpers::render('controls.php', ["tag" => $service['tag'], "host" => $service['hostname'], "service" => $service['service_name']]); echo ""; - echo "{$blink_tag}{$service['service_name']}{$service['detail']}"; + echo "{$blink_tag}{$service['service_name']}{$service['detail']}"; echo "{$service['duration']}"; echo "{$service['current_attempt']}/{$service['max_attempts']}"; echo ""; @@ -185,8 +185,8 @@ if (!$service['is_enabled']) $status_text = "disabled"; echo ""; $tag = NagdashHelpers::print_tag($service['tag'], count($nagios_hosts)); - echo "{$service['hostname']} " . $tag . ""; - echo "{$service['service_name']}"; + echo "{$service['hostname']} " . $tag . ""; + echo "{$service['service_name']}"; echo "{$nagios_service_status[$service['service_state']]} ({$status_text})"; echo "{$service['duration']}"; echo "{$service['current_attempt']}/{$service['max_attempts']}";