Updated discovery to log new type + updated eventlog page to show this

This commit is contained in:
laf
2015-08-05 20:05:45 +00:00
parent 2537767f2d
commit 746c52046b
4 changed files with 29 additions and 3 deletions

View File

@@ -7,6 +7,11 @@ if (is_numeric($_POST['device'])) {
$param[] = $_POST['device'];
}
if (!empty($_POST['type'])) {
$where .= ' AND `E`.`type` = ?';
$param[] = $_POST['type'];
}
if ($_POST['string']) {
$where .= ' AND E.message LIKE ?';
$param[] = '%'.$_POST['string'].'%';
@@ -54,7 +59,7 @@ foreach (dbFetchRows($sql, $param) as $eventlog) {
$type = '<b>'.generate_port_link($this_if, makeshortif(strtolower($this_if['label']))).'</b>';
}
else {
$type = 'System';
$type = $eventlog['type'];;
}
$response[] = array(