Allow F5 APM graphs to display automatically (#9377)

* Update f5.inc.php

RRD file needs to be named bigip_apm_sessions for the graph to automatically appear.

* Update and rename bigip_apm_curr_sessions.inc.php to bigip_apm_sessions.inc.php

It seems that both this file and the RRD file need to be named bigip_apm_sessions for the graphs to appear automatically

* Create 270.sql

Missed this from the original pull request - the graph has to be named bigip_apm_sessions to automatically display
This commit is contained in:
JohnSPeach
2018-10-25 16:39:45 -04:00
committed by Tony Murray
parent fd6310a405
commit 03e8bd743e
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], 'apm_sessions');
$rrd_filename = rrd_name($device['hostname'], 'bigip_apm_sessions');
require 'includes/graphs/common.inc.php';

View File

@@ -15,6 +15,6 @@ if (is_numeric($sessions)) {
);
$tags = compact('rrd_def');
data_update($device, 'apm_sessions', $tags, $fields);
$graphs['apm_sessions'] = true;
data_update($device, 'bigip_apm_sessions', $tags, $fields);
$graphs['bigip_apm_sessions'] = true;
}

1
sql-schema/270.sql Normal file
View File

@@ -0,0 +1 @@
update graph_types set graph_subtype = 'bigip_apm_sessions' where graph_subtype = 'apm_sessions';