Bluecoat updates - Fixes (#8715)

* Blue Coat device updates

* Blue Coat device updates

* Updated PHP code per @laf comments

* YAML update for Packetshaper

* SSL Visibility YAML and snmprec file

* Cleanup problematic MIB files which should not have been there

* Reset Packetshaper YAML to original

* Fixed typos and value bugs in inc files|added missing definitions.inc.php entries to display graphs

* Fixed SQL typo

* Corrected SQL file names

* Update 251.sql
This commit is contained in:
centralscrutiniser
2018-05-22 15:29:45 +01:00
committed by Tony Murray
parent 5c83d438c5
commit 52ea0a58b3
7 changed files with 39 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ $rrd_filename = rrd_name($device['hostname'], 'sgos_client_connections');
require 'includes/graphs/common.inc.php';
$ds = 'client_connections';
$ds = 'client_conn';
$colour_area = '9999cc';
$colour_line = 'ff0000';

View File

@@ -4,7 +4,7 @@ $rrd_filename = rrd_name($device['hostname'], 'sgos_client_connections_idle');
require 'includes/graphs/common.inc.php';
$ds = 'client_conn_idle';
$ds = 'client_idle';
$colour_area = '9999cc';
$colour_line = 'ff0000';

View File

@@ -4,7 +4,7 @@ $rrd_filename = rrd_name($device['hostname'], 'sgos_server_connections');
require 'includes/graphs/common.inc.php';
$ds = 'server_connections';
$ds = 'server_conn';
$colour_area = '9999cc';
$colour_line = 'ff0000';

View File

@@ -4,7 +4,7 @@ $rrd_filename = rrd_name($device['hostname'], 'sgos_server_connections_idle');
require 'includes/graphs/common.inc.php';
$ds = 'server_conn_idle';
$ds = 'server_idle';
$colour_area = '9999cc';
$colour_line = 'ff0000';

View File

@@ -518,6 +518,36 @@ $config['graph_types']['device']['sgos_average_requests']['section'] = 'network
$config['graph_types']['device']['sgos_average_requests']['order'] = '0';
$config['graph_types']['device']['sgos_average_requests']['descr'] = 'Average HTTP Requests';
// Blue Coat SGOS
// Client Connections
$config['graph_types']['device']['bluecoat_http_client_connections']['section'] = 'network';
$config['graph_types']['device']['bluecoat_http_client_connections']['order'] = '0';
$config['graph_types']['device']['bluecoat_http_client_connections']['descr'] = 'HTTP Client Connections';
// Server Connections
$config['graph_types']['device']['bluecoat_http_server_connections']['section'] = 'network';
$config['graph_types']['device']['bluecoat_http_server_connections']['order'] = '0';
$config['graph_types']['device']['bluecoat_http_server_connections']['descr'] = 'HTTP Server Connections';
// Client Connections Active
$config['graph_types']['device']['bluecoat_http_client_connections_active']['section'] = 'network';
$config['graph_types']['device']['bluecoat_http_client_connections_active']['order'] = '0';
$config['graph_types']['device']['bluecoat_http_client_connections_active']['descr'] = 'HTTP Client Connections Active';
// Server Connections Active
$config['graph_types']['device']['bluecoat_http_server_connections_active']['section'] = 'network';
$config['graph_types']['device']['bluecoat_http_server_connections_active']['order'] = '0';
$config['graph_types']['device']['bluecoat_http_server_connections_active']['descr'] = 'HTTP Server Connections Active';
// Client Connections Idle
$config['graph_types']['device']['bluecoat_http_client_connections_idle']['section'] = 'network';
$config['graph_types']['device']['bluecoat_http_client_connections_idle']['order'] = '0';
$config['graph_types']['device']['bluecoat_http_client_connections_idle']['descr'] = 'HTTP Client Connections Idle';
// Server Connections Idle
$config['graph_types']['device']['bluecoat_http_server_connections_idle']['section'] = 'network';
$config['graph_types']['device']['bluecoat_http_server_connections_idle']['order'] = '0';
$config['graph_types']['device']['bluecoat_http_server_connections_idle']['descr'] = 'HTTP Server Connections Idle';
//riverbed specific graphs
$config['graph_types']['device']['riverbed_connections']['section'] = 'network';
$config['graph_types']['device']['riverbed_connections']['order'] = 0;

View File

@@ -3,7 +3,9 @@
use LibreNMS\RRD\RrdDefinition;
$oid_list = 'sgProxyVersion.0 sgProxySoftware.0 sgProxyHttpClientRequestRate.0 sgProxyHttpClientConnections.0 sgProxyHttpClientConnectionsActive.0 sgProxyHttpClientConnectionsIdle.0 sgProxyHttpServerConnections.0 sgProxyHttpServerConnectionsActive.0 sgProxyHttpServerConnectionsIdle.0';
$sgos = snmp_get_multi_oid($device, $oid_list, '-OUQs', 'BLUECOAT-SG-PROXY-MIB');
$sgos = snmp_get_multi($device, $oid_list, '-OUQs', 'BLUECOAT-SG-PROXY-MIB');
$version = $sgos[0]['sgProxyVersion.0'];
$hardware = $sgos[0]['sgProxySoftware.0'];

2
sql-schema/251.sql Normal file
View File

@@ -0,0 +1,2 @@
DELETE FROM `graph_types` WHERE `graph_descr` = 'HTTP Server Connections Acitve';
INSERT INTO `graph_types`(`graph_type`, `graph_subtype`, `graph_section`, `graph_descr`, `graph_order`) VALUES ('device', 'sgos_server_connections_active', 'network', 'HTTP Server Connections Active', 0);