librenms/includes/polling/entity-physical.inc.php
2021-10-25 21:35:18 +02:00

22 lines
507 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
if (isset($entPhysical_state)) {
include 'includes/polling/entity-physical/state.inc.php';
}
} else {
echo 'Disabled!';
}//end if
unset(
$mod_stats,
$chan_stats
);