librenms-librenms/includes/polling/entity-physical.inc.php
2018-04-24 21:20:21 -05:00

20 lines
456 B
PHP

<?php
use LibreNMS\Config;
if ($config['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
);