Fix coding style part 2

This commit is contained in:
Job Snijders
2015-07-15 11:04:22 +02:00
parent ad9590df9b
commit d8693f05ae
733 changed files with 37338 additions and 33926 deletions
+12 -13
View File
@@ -1,20 +1,19 @@
<?php
/**
* Management Card(s) CPU usage
*
*/
if ($device['os'] == "fiberhome") {
/**
* 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, "1.3.6.1.4.1.5875.800.3.9.8.1.1.5.9", "0", "fiberhome", "Hswa 9 Processor", "100", $usage/100, NULL, NULL);
$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, '1.3.6.1.4.1.5875.800.3.9.8.1.1.5.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, "1.3.6.1.4.1.5875.800.3.9.8.1.1.5.10", "1", "fiberhome", "Hswa 10 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, '1.3.6.1.4.1.5875.800.3.9.8.1.1.5.10', '1', 'fiberhome', 'Hswa 10 Processor', '100', ($usage / 100), null, null);
};
}