mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user