mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-20 08:03:08 +02:00
Added support for os in oxidized groups
This commit is contained in:
@@ -953,6 +953,14 @@ function list_oxidized() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (empty($device['group'])) {
|
||||
foreach ($config['oxidized']['group']['os'] as $host_group) {
|
||||
if ($host_group['match'] === $device['os']) {
|
||||
$device['group'] = $host_group['group'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (empty($device['group'])) {
|
||||
foreach ($config['oxidized']['group']['location'] as $host_group) {
|
||||
if (preg_match($host_group['regex'].'i', $device['location'])) {
|
||||
|
||||
Reference in New Issue
Block a user