mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	First cut at working poller for MIBs
This commit is contained in:
		| @@ -453,6 +453,16 @@ function get_dev_attribs($device) | ||||
|   return $attribs; | ||||
| } | ||||
|  | ||||
| function is_dev_attrib_enabled($device, $attrib) | ||||
| { | ||||
|     foreach (get_dev_attribs($device) as $name => $val) { | ||||
|         if ($name == $attrib && $val == 0) { | ||||
|             return false; | ||||
|         } | ||||
|     } | ||||
|     return true; | ||||
| } | ||||
|  | ||||
| function get_dev_entity_state($device) | ||||
| { | ||||
|   $state = array(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user