mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add additional eventlog severity levels (#5879)
This commit is contained in:
committed by
Neil Lathwood
parent
a44d4254f8
commit
e4f48e661e
@@ -30,10 +30,10 @@ if (!empty($ifName) && is_numeric($port_id)) {
|
||||
$device = device_by_id_cache($device_id);
|
||||
if ($descr === 'repoll') {
|
||||
del_dev_attrib($device, 'ifName:'.$ifName);
|
||||
log_event("$ifName Port ifAlias cleared manually", $device, 'interface', $port_id);
|
||||
log_event("$ifName Port ifAlias cleared manually", $device, 'interface', 3, $port_id);
|
||||
} else {
|
||||
set_dev_attrib($device, 'ifName:'.$ifName, 1);
|
||||
log_event("$ifName Port ifAlias set manually: $descr", $device, 'interface', $port_id);
|
||||
log_event("$ifName Port ifAlias set manually: $descr", $device, 'interface', 3, $port_id);
|
||||
}
|
||||
$status = 'ok';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user