librenms/includes/polling/entity-physical.inc.php
Tony Murray f3ba8947f7
Use Config helper (#10339)
remove usage of global variable
2019-06-23 00:29:12 -05:00

20 lines
460 B
PHP

<?php
use LibreNMS\Config;
if (Config::get('enable_inventory')) {
if (file_exists(Config::get('install_dir') . "/includes/polling/entity-physical/{$device['os']}.inc.php")) {
include Config::get('install_dir') . "/includes/polling/entity-physical/{$device['os']}.inc.php";
}
// Update State
include 'includes/polling/entity-physical/state.inc.php';
} else {
echo 'Disabled!';
}//end if
unset(
$mod_stats,
$chan_stats
);