mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Adjust code to Best Practice
- Adjust the code I’ve introduced to Scrut and general Best Practice
This commit is contained in:
@@ -30,5 +30,3 @@ if (isset($data[1]['entPhysicalModelName']) && $data[1]['entPhysicalModelName']
|
||||
if (isset($data[1]['entPhysicalSerialNum']) && $data[1]['entPhysicalSerialNum'] != "") {
|
||||
$serial = $data[1]['entPhysicalSerialNum'];
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -42,5 +42,3 @@ if (is_numeric($cpu_usage))
|
||||
rrdtool_update($cpurrd, " N:$cpu_usage");
|
||||
$graphs['fortigate_cpu'] = TRUE;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -39,4 +39,3 @@ if (strpos($sysdescr_value, 'IBM Networking Operating System') !== false) {
|
||||
$version = trim(snmp_get($device, ".1.3.6.1.2.1.47.1.1.1.1.10.1", "-Ovq") , '" ');
|
||||
$serial = trim(snmp_get($device, ".1.3.6.1.2.1.47.1.1.1.1.11.1", "-Ovq") , '" ');
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -50,5 +50,3 @@ $ruckus_mibs = array(
|
||||
"ruckusZDWLANAPTable" => "RUCKUS-ZD-WLAN-MIB",
|
||||
);
|
||||
poll_mibs($ruckus_mibs, $device, $graphs);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user