mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Small visual change to print-alerts.php
- Prints a link to the device instead of just text. - Prints rule name instead of definition. Definition will appear if you hover the mouse over the rule name.
This commit is contained in:
@ -85,8 +85,8 @@ foreach( dbFetchRows($full_query, $param) as $alert ) {
|
||||
$orig_class = $extra;
|
||||
echo "<tr class='".$extra."' id='row_".$alert['id']."'>";
|
||||
echo "<td><i>#".((int) $rulei++)."</i></td>";
|
||||
echo "<td><i>".htmlentities($rule['rule'])."</i></td>";
|
||||
echo "<td>".$alert['hostname']."</td>";
|
||||
echo "<td><i title=\"".htmlentities($rule['rule'])."\">".htmlentities($rule['name'])."</i></td>";
|
||||
echo "<td><a href=\"device/device=".$alert['device_id']."\">".$alert['hostname']."</a></td>";
|
||||
echo "<td>".($alert['timestamp'] ? $alert['timestamp'] : "N/A")."</td>";
|
||||
echo "<td>".$rule['severity'];
|
||||
if($alert['state'] == 3) {
|
||||
|
Reference in New Issue
Block a user