2011-11-14 16:53:37 +00:00
|
|
|
<?php
|
|
|
|
|
2018-04-24 21:20:21 -05:00
|
|
|
use LibreNMS\Config;
|
|
|
|
|
2019-06-23 00:29:12 -05:00
|
|
|
if (Config::get('enable_inventory')) {
|
2018-04-25 02:08:06 +01:00
|
|
|
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";
|
2011-11-14 16:53:37 +00:00
|
|
|
}
|
|
|
|
|
2016-10-06 10:40:37 +10:00
|
|
|
// Update State
|
2021-10-25 14:35:18 -05:00
|
|
|
if (isset($entPhysical_state)) {
|
|
|
|
include 'includes/polling/entity-physical/state.inc.php';
|
|
|
|
}
|
2016-10-06 10:40:37 +10:00
|
|
|
} else {
|
|
|
|
echo 'Disabled!';
|
|
|
|
}//end if
|
2017-02-08 04:54:30 +00:00
|
|
|
|
|
|
|
unset(
|
|
|
|
$mod_stats,
|
|
|
|
$chan_stats
|
|
|
|
);
|