mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			460 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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
 | 
						|
);
 |