mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Adjust code to Best Practice
- Adjust the code I’ve introduced to Scrut and general Best Practice
This commit is contained in:
@@ -47,5 +47,3 @@ if ($alert_state!='') {
|
||||
}
|
||||
|
||||
echo("</tr>");
|
||||
|
||||
?>
|
||||
|
||||
@@ -10,4 +10,3 @@
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
require_once('includes/print-graph-alerts.inc.php');
|
||||
?>
|
||||
@@ -10,4 +10,3 @@
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
require_once('includes/print-graph-alerts.inc.php');
|
||||
?>
|
||||
@@ -14,4 +14,3 @@ if (!$os) {
|
||||
$os = "barracudaloadbalancer";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -8,5 +8,3 @@ if (!$os) {
|
||||
$os = "drac";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -14,4 +14,3 @@ if (!$os) {
|
||||
$os = "ibmnos";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -14,4 +14,3 @@ if (!$os) {
|
||||
$os = "ruckuswireless";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -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