mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added Syslog, Eventlog and Globe Map widgets
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<?php
|
||||
|
||||
if (device_permitted($entry['device_id'])) {
|
||||
echo '<tr>';
|
||||
$syslog_output .= '<tr>';
|
||||
|
||||
// Stop shortening hostname. Issue #61
|
||||
// $entry['hostname'] = shorthost($entry['hostname'], 20);
|
||||
if ($vars['page'] != 'device') {
|
||||
echo '<td>'.$entry['date'].'</td>';
|
||||
echo '<td><strong>'.generate_device_link($entry).'</strong></td>';
|
||||
echo '<td><strong>'.$entry['program'].' : </strong> '.htmlspecialchars($entry['msg']).'</td>';
|
||||
$syslog_output .= '<td>'.$entry['date'].'</td>
|
||||
<td><strong>'.generate_device_link($entry).'</strong></td>
|
||||
<td><strong>'.$entry['program'].' : </strong> '.htmlspecialchars($entry['msg']).'</td>';
|
||||
}
|
||||
else {
|
||||
echo '<td><i>'.$entry['date'].'</i> <strong>'.$entry['program'].'</strong> '.htmlspecialchars($entry['msg']).'</td>';
|
||||
$syslog_output .= '<td><i>'.$entry['date'].'</i> <strong>'.$entry['program'].'</strong> '.htmlspecialchars($entry['msg']).'</td>';
|
||||
}
|
||||
|
||||
echo '</tr>';
|
||||
$syslog_output .= '</tr>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user