Files
martinberg 342900ee53 Poll current connections for F5 ltm (#12968)
* Poll current connections for F5 ltm

* Changed polling to a separate RRD-file

* Reverted old changes

* Remove stats not needed in this file

* Fixed typos and cleanup

* Updated copyright
2021-07-22 01:07:30 +02:00

98 lines
3.8 KiB
PHP

<?php
/*
* LibreNMS module to Display data from F5 BigIP LTM Devices
*
* Copyright (c) 2016 Aaron Daniels <[email protected]>
*
* 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
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
include 'includes/html/pages/device/loadbalancer/ltm_vs_common.inc.php';
if ($components[$vars['vsid']]['type'] == 'f5-ltm-vs') {
?>
<div class="row">
<div class="col-md-12">
<div class="container-fluid">
<div class='row'>
<div class="panel panel-default" id="currconnections">
<div class="panel-heading">
<h3 class="panel-title">Current Connections</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['legend'] = 'no';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_bigip_ltm_vs_currconns';
$graph_array['id'] = $vars['vsid'];
require 'includes/html/print-graphrow.inc.php'; ?>
</div>
</div>
<div class="panel panel-default" id="connections">
<div class="panel-heading">
<h3 class="panel-title">Connections</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['legend'] = 'no';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_bigip_ltm_vs_conns';
$graph_array['id'] = $vars['vsid'];
require 'includes/html/print-graphrow.inc.php'; ?>
</div>
</div>
<div class="panel panel-default" id="bytes">
<div class="panel-heading">
<h3 class="panel-title">Bytes</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['legend'] = 'no';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_bigip_ltm_vs_bytes';
$graph_array['id'] = $vars['vsid'];
require 'includes/html/print-graphrow.inc.php'; ?>
</div>
</div>
<div class="panel panel-default" id="pkts">
<div class="panel-heading">
<h3 class="panel-title">Packets</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['legend'] = 'no';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_bigip_ltm_vs_pkts';
$graph_array['id'] = $vars['vsid'];
require 'includes/html/print-graphrow.inc.php'; ?>
</div>
</div>
</div>
</div>
</div>
<?php
}