diff --git a/includes/discovery/loadbalancers/f5-ltm.inc.php b/includes/discovery/loadbalancers/f5-ltm.inc.php index ee0d0e9f30..052001de10 100644 --- a/includes/discovery/loadbalancers/f5-ltm.inc.php +++ b/includes/discovery/loadbalancers/f5-ltm.inc.php @@ -195,10 +195,8 @@ if (!empty($ltmVirtualServEntry) || !empty($ltmPoolEntry) || !empty($ltmPoolMemb $result['label'] = $value; // The UID is far too long to have in a RRD filename, use a hash of it instead. $result['hash'] = hash('crc32', $result['UID']); - } - // Do we have any results if (count($result) > 0) { // Add this result to the master array. diff --git a/includes/html/graphs/device/bigip_ltm_allbwc_BitsDropped.inc.php b/includes/html/graphs/device/bigip_ltm_allbwc_BitsDropped.inc.php index 82a508dce3..92fb5cac9b 100644 --- a/includes/html/graphs/device/bigip_ltm_allbwc_BitsDropped.inc.php +++ b/includes/html/graphs/device/bigip_ltm_allbwc_BitsDropped.inc.php @@ -2,7 +2,7 @@ /* * LibreNMS module to display F5 LTM Bandwidth Controller Details * - * Copyright (c) 2019 Yacine BENAMSILI + * Copyright (c) 2019 Yacine BENAMSILI * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the diff --git a/includes/html/graphs/device/bigip_ltm_bwc_Bits.inc.php b/includes/html/graphs/device/bigip_ltm_bwc_Bits.inc.php index aaf16cb988..519d8e90a0 100644 --- a/includes/html/graphs/device/bigip_ltm_bwc_Bits.inc.php +++ b/includes/html/graphs/device/bigip_ltm_bwc_Bits.inc.php @@ -36,5 +36,5 @@ if (isset($components[$vars['id']])) { $rrd_options .= " GPRINT:INBITS:LAST:%6.2lf%s "; $rrd_options .= " GPRINT:INBITS:AVERAGE:%6.2lf%s "; $rrd_options .= " GPRINT:INBITS:MAX:%6.2lf%s\l "; - } + } } diff --git a/includes/html/graphs/device/bigip_ltm_bwc_BitsDropped.inc.php b/includes/html/graphs/device/bigip_ltm_bwc_BitsDropped.inc.php index aa9617d22d..811f8dc0df 100644 --- a/includes/html/graphs/device/bigip_ltm_bwc_BitsDropped.inc.php +++ b/includes/html/graphs/device/bigip_ltm_bwc_BitsDropped.inc.php @@ -36,6 +36,5 @@ if (isset($components[$vars['id']])) { $rrd_options .= " GPRINT:INBITS:LAST:%6.2lf%s "; $rrd_options .= " GPRINT:INBITS:AVERAGE:%6.2lf%s "; $rrd_options .= " GPRINT:INBITS:MAX:%6.2lf%s\l "; - - } + } } diff --git a/includes/html/graphs/device/bigip_ltm_bwc_pkts.inc.php b/includes/html/graphs/device/bigip_ltm_bwc_pkts.inc.php index d0fc24b510..057519ed6d 100644 --- a/includes/html/graphs/device/bigip_ltm_bwc_pkts.inc.php +++ b/includes/html/graphs/device/bigip_ltm_bwc_pkts.inc.php @@ -35,6 +35,5 @@ if (isset($components[$vars['id']])) { $rrd_options .= " GPRINT:DS:LAST:%6.2lf%s "; $rrd_options .= " GPRINT:DS:AVERAGE:%6.2lf%s "; $rrd_options .= " GPRINT:DS:MAX:%6.2lf%s\l "; - - } + } } diff --git a/includes/html/pages/device/loadbalancer/ltm_bwc_common.inc.php b/includes/html/pages/device/loadbalancer/ltm_bwc_common.inc.php index 6bc5225395..a149d5bcd3 100644 --- a/includes/html/pages/device/loadbalancer/ltm_bwc_common.inc.php +++ b/includes/html/pages/device/loadbalancer/ltm_bwc_common.inc.php @@ -24,7 +24,7 @@ if (!isset($vars['bwcid'])) { if ($array['type'] != 'f5-ltm-bwc') { continue; } - $vars['bwcid'] = $id; + $vars['bwcid'] = $id; } } diff --git a/includes/html/pages/device/loadbalancer/ltm_bwc_det.inc.php b/includes/html/pages/device/loadbalancer/ltm_bwc_det.inc.php index 501b09aefd..9c1dd5d1c5 100644 --- a/includes/html/pages/device/loadbalancer/ltm_bwc_det.inc.php +++ b/includes/html/pages/device/loadbalancer/ltm_bwc_det.inc.php @@ -77,5 +77,5 @@ if ($components[$vars['bwcid']]['type'] == 'f5-ltm-bwc') { - 0)) { $hash = $array['hash']; $rrd_name = array($type, $label, $hash); - if ($type == 'f5-ltm-bwc') { + if ($type == 'f5-ltm-bwc') { $rrd_def = RrdDefinition::make() ->addDataset('pktsin', 'COUNTER', 0) ->addDataset('bytesin', 'COUNTER', 0) @@ -102,8 +102,7 @@ if (count($components > 0)) { d_echo("\n\nComponent: ".$key."\n"); d_echo(" Type: ".$type."\n"); d_echo(" Label: ".$label."\n"); - - } elseif ($type == 'f5-ltm-vs') { + } elseif ($type == 'f5-ltm-vs') { $rrd_def = RrdDefinition::make() ->addDataset('pktsin', 'COUNTER', 0) ->addDataset('pktsout', 'COUNTER', 0)