mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -46,9 +46,9 @@ if (!function_exists('proxmox_vm_exists')) {
|
||||
$name = 'proxmox';
|
||||
$app_id = $app['app_id'];
|
||||
|
||||
if (isset($config['enable_proxmox']) && $config['enable_proxmox'] && !empty($agent_data['app'][$name])) {
|
||||
if (\LibreNMS\Config::get('enable_proxmox') && !empty($agent_data['app'][$name])) {
|
||||
$proxmox = $agent_data['app'][$name];
|
||||
} elseif (isset($config['enable_proxmox']) && $config['enable_proxmox']) {
|
||||
} elseif (\LibreNMS\Config::get('enable_proxmox')) {
|
||||
$options = '-Oqv';
|
||||
$oid = '.1.3.6.1.4.1.8072.1.3.2.3.1.2.7.112.114.111.120.109.111.120';
|
||||
$proxmox = snmp_get($device, $oid, $options);
|
||||
|
Reference in New Issue
Block a user