Files
librenms-librenms/includes/polling/entity-physical.inc.php

22 lines
507 B
PHP
Raw Normal View History

<?php
2018-04-24 21:20:21 -05:00
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
);