mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Moving around polling files...
git-svn-id: http://www.observium.org/svn/observer/trunk@72 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,31 +4,31 @@ if(!$samehost) {
|
||||
if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg = $list_colour_a; }
|
||||
}
|
||||
|
||||
$service_type = strtolower($service[service_type]);
|
||||
$service_type = strtolower($service['service_type']);
|
||||
|
||||
if($service[service_status] == '0') {$status = "<span class=red><b>$service_type</b></span>";
|
||||
} elseif ($service[service_status] == '1') {$status = "<span class=green><b>$service_type</b></span>";
|
||||
} elseif ($service[service_status] == '2') {$status = "<span class=grey><b>$service_type</b></span>";}
|
||||
|
||||
$message = trim($service[service_message]);
|
||||
$message = trim($service['service_message']);
|
||||
$message = str_replace("\n", "<br />", $message);
|
||||
|
||||
$since = time() - $service[service_changed];
|
||||
$since = time() - $service['service_changed'];
|
||||
$since = formatUptime($since);
|
||||
|
||||
if($service[service_checked]) {
|
||||
$checked = time() - $service[service_checked];
|
||||
if($service['service_checked']) {
|
||||
$checked = time() - $service['service_checked'];
|
||||
$checked = formatUptime($checked);
|
||||
} else { $checked = "Never"; }
|
||||
|
||||
|
||||
echo("
|
||||
<tr style=\"background-color: $bg; padding: 5px;\"><td valign=top>$service[service_id].</td>");
|
||||
<tr style=\"background-color: $bg; padding: 5px;\"><td valign=top>" . $service['service_id'] . ".</td>");
|
||||
|
||||
if($device_id) {
|
||||
if(!$samehost) {
|
||||
$device[id] = $device_id;
|
||||
$device[hostname] = $device_hostname;
|
||||
$device['device_id'] = $device_id;
|
||||
$device['hostname'] = $device_hostname;
|
||||
echo("<td valign=top width=200><span style='font-weight:bold;'>" . generatedevicelink($device) . "</span></td>");
|
||||
} else {
|
||||
echo("<td></td>");
|
||||
@@ -49,5 +49,4 @@ echo("
|
||||
|
||||
$i++;
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user