From 942e5047e5bfe7f68dd59207320918431623e1fd Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 13 Jun 2015 16:15:03 +1000 Subject: [PATCH] Graph sections must be lower case --- includes/definitions.inc.php | 2 +- includes/snmp.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/definitions.inc.php b/includes/definitions.inc.php index 2604b6381..ccdac23a6 100644 --- a/includes/definitions.inc.php +++ b/includes/definitions.inc.php @@ -1533,7 +1533,7 @@ $config['graph_types']['device']['siklu_rfinterfaceOtherOctets'] = array( ); $config['graph_types']['device']['ruckusZD1000-SystemLicensedAPs'] = array( - 'section' => 'MIB', + 'section' => 'mib', 'order' => '1', 'descr' => 'Licensed APs', 'file' => 'ruckusZD1000-SystemLicensedAPs-0.rrd', diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php index 40bf0aa33..4be24da1f 100644 --- a/includes/snmp.inc.php +++ b/includes/snmp.inc.php @@ -1044,7 +1044,7 @@ function update_mib_graph_types($mibname, $oids, $mibdef, $graphs) $graphdef = array(); $graphdef['graph_type'] = "device"; $graphdef['graph_subtype'] = $graphname; - $graphdef['graph_section'] = "MIB"; + $graphdef['graph_section'] = "mib"; $graphdef['graph_descr'] = $mibdef[$oid]['description']; $graphdef['graph_order'] = $i++; // TODO: add colours, unit_text, and ds