diff --git a/includes/discovery/processors/awplus.inc.php b/includes/discovery/processors/awplus.inc.php new file mode 100644 index 0000000000..a1bc1c7ea2 --- /dev/null +++ b/includes/discovery/processors/awplus.inc.php @@ -0,0 +1,35 @@ +. + * + * @package LibreNMS + * @link http://librenms.org + * @author Matt Read + */ + +if ($device['os'] === 'awplus') { + echo 'AWPlus: '; + $awplus_procs = snmpwalk_group($device, 'cpuUtilisationStackEntry', 'AT-SYSINFO-MIB'); + foreach ($awplus_procs as $proc_index => $proc_info) { + $usage = $proc_info['cpuUtilisationStackAvgLastMinute']; + if (is_numeric($usage)) { + $descr = "Processor $proc_index"; + discover_processor($valid['processor'], $device, ".1.3.6.1.4.1.207.8.4.4.3.3.8.1.4.$proc_index", $proc_index, 'awplus', $descr, '1', $usage, null, null); + } + } +}