', $row_style[$host_counter % 2]);
+ printf('
',
htmlentities($CONFIG['weburl']),
urlencode($host),
htmlentities($host));
@@ -253,11 +253,11 @@ function host_summary($cat, $hosts) {
foreach (array('ds[shortterm].last_ds', 'ds[midterm].last_ds', 'ds[longterm].last_ds') as $info) {
$class = '';
if ($cores > 0 && $rrd_info[$info] > $cores * 2)
- $class = ' class="crit"';
+ $class = ' crit';
elseif ($cores > 0 && $rrd_info[$info] > $cores)
- $class = ' class="warn"';
+ $class = ' warn';
- printf('
%.2f | ', $class, $rrd_info[$info]);
+ printf('
%.2f
', $class, $rrd_info[$info]);
}
}
}
@@ -276,11 +276,11 @@ function host_summary($cat, $hosts) {
$class = '';
if ($percent_mem > 90)
- $class = ' class="crit"';
+ $class = ' crit';
elseif ($percent_mem > 70)
- $class = ' class="warn"';
+ $class = ' warn';
- printf('
%d%% | ', $class, $percent_mem);
+ printf('
%d%%
', $class, $percent_mem);
}
}
}
@@ -296,15 +296,15 @@ function host_summary($cat, $hosts) {
elseif ($time > 60)
$class .= ' warn';
- printf('
| ',
+ printf('
',
$class, date('c', $rrd_info['last_update']), $time);
}
}
- print "