Added FiiberHome Cpu Discovery/Poller Added Support

This commit is contained in:
Alan Gregory
2015-05-22 08:52:16 -03:00
parent d124e55b3d
commit 25bf55a172

View File

@ -0,0 +1,21 @@
<?php
/**
* Management Card(s) CPU usage
*
*/
if ($device['os'] == "fiberhome") {
/**
* Check if Card is installed
*/
$card1Status = snmp_get($device, "mgrCardWorkStatus.9", "-Ovq", "GEPON-OLT-COMMON-MIB");
$card2Status = snmp_get($device, "mgrCardWorkStatus.10", "-Ovq", "GEPON-OLT-COMMON-MIB");
if($card1Status == '1'){
$usage = snmp_get($device, "mgrCardCpuUtil.9", "-Ovq", "GEPON-OLT-COMMON-MIB");
discover_processor($valid['processor'], $device, "GEPON-OLT-COMMON-MIB::mgrCardCpuUtil.9", "0", "fiberhome", "Hswa 9 Processor", "100", $usage/100, NULL, NULL);
};
if($card2Status == '1'){
$usage = snmp_get($device, "mgrCardCpuUtil.10", "-Ovq", "GEPON-OLT-COMMON-MIB");
discover_processor($valid['processor'], $device, "GEPON-OLT-COMMON-MIB::mgrCardCpuUtil.10", "1", "fiberhome", "Hswa 10 Processor", "100", $usage/100, NULL, NULL);
};
}
?>