add cpu and memory discovery/polling to PBN devices

This commit is contained in:
vitalisator
2015-12-27 00:23:39 +01:00
parent fd10cd751a
commit 81ab435942
10 changed files with 10070 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
if ($device['os'] == 'pbn') {
echo 'PBN : ';
$descr = 'Processor';
$usage = str_replace(' percent', '', snmp_get($device, 'NMS-PROCESS-MIB::nmspmCPUTotal5min', '-OvQ'));
if (is_numeric($usage)) {
discover_processor($valid['processor'], $device, 'NMS-PROCESS-MIB::nmspmCPUTotal5min', '0', 'pbn-cpu', $descr,
'100', $usage, null, null);
}
}