Eventlog updates (#9633)

* Eventlog updates
remove host from eventlog table, retain in api
allow most fields nullable

* updated schema

* revert auth for legacy log_event function
safer check in the model

* add function modifiers
This commit is contained in:
Tony Murray
2019-01-10 00:52:00 -06:00
committed by GitHub
parent 98f75bd9ce
commit daffa7e274
12 changed files with 67 additions and 32 deletions

View File

@@ -15,7 +15,7 @@
* @author LibreNMS Contributors
*/
$hostname = gethostbyid($entry['host']);
$hostname = gethostbyid($entry['device_id']);
unset($icon);
@@ -27,7 +27,7 @@ echo '<td>'.$icon .'</td>';
echo '<td style="vertical-align: middle;">'.$entry['datetime'].'</td>';
if (!isset($vars['device'])) {
$dev = device_by_id_cache($entry['host']);
$dev = device_by_id_cache($entry['device_id']);
echo '<td style="vertical-align: middle;">'.generate_device_link($dev, shorthost($dev['hostname'])).'</td>';
}