From 0fd9bb4de6894a7ebd8d89592884d624c00837ee Mon Sep 17 00:00:00 2001 From: Emma Foley Date: Fri, 22 May 2020 16:10:51 -0400 Subject: Update SNMP agent config The one-click install was not working with SNMP. The manual install also wasn't working due to the ``Instance true`` config option in the config. ``Instance true`` is not a valid config option for snmp agent. This option appears in the stable container config, and also in the ansible config, but not in the master container. Removing this unsupported option allows the config to be read and collectd to be started. JIRA: BAROMETER-134 Signed-off-by: Emma Foley Change-Id: If154b3190d82d1cd3638a9c258d2b48bb0efe9af --- .../roles/config_files/templates/snmp_agent.conf.j2 | 19 ++++++++++++++----- src/collectd/collectd_sample_configs/snmp_agent.conf | 4 ---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/docker/ansible/roles/config_files/templates/snmp_agent.conf.j2 b/docker/ansible/roles/config_files/templates/snmp_agent.conf.j2 index 1157c4a2..48bb709f 100644 --- a/docker/ansible/roles/config_files/templates/snmp_agent.conf.j2 +++ b/docker/ansible/roles/config_files/templates/snmp_agent.conf.j2 @@ -12,13 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -#LoadPlugin snmp_agent +LoadPlugin snmp_agent + # Intel PMU MIB IndexOID "INTEL-PMU-MIB::pmuGroupIndex" - Instance true + + Source "PluginInstance" + Plugin "intel_pmu" OIDs "INTEL-PMU-MIB::pmuGroupDescr" @@ -280,7 +283,9 @@ IndexOID "INTEL-RDT-MIB::rdtGroupIndex" SizeOID "INTEL-RDT-MIB::rdtGroupNumber" - Instance true + + Source "PluginInstance" + Plugin "intel_rdt" OIDs "INTEL-RDT-MIB::rdtGroupDescr" @@ -312,7 +317,9 @@
IndexOID "INTEL-MCELOG-MIB::memoryGroupIndex" - Instance true + + Source "PluginInstance" + Plugin "mcelog" OIDs "INTEL-MCELOG-MIB::memoryGroupDescr" @@ -344,7 +351,9 @@ # Hugepages
- Instance true + + Source "PluginInstance" + Plugin "hugepages" OIDs "INTEL-HUGEPAGES-MIB::hugepagesNode" diff --git a/src/collectd/collectd_sample_configs/snmp_agent.conf b/src/collectd/collectd_sample_configs/snmp_agent.conf index a4511a94..7452ccae 100644 --- a/src/collectd/collectd_sample_configs/snmp_agent.conf +++ b/src/collectd/collectd_sample_configs/snmp_agent.conf @@ -17,7 +17,6 @@ LoadPlugin snmp_agent
IndexOID "INTEL-PMU-MIB::pmuGroupIndex" - Instance true Plugin "intel_pmu" OIDs "INTEL-PMU-MIB::pmuGroupDescr" @@ -279,7 +278,6 @@ LoadPlugin snmp_agent IndexOID "INTEL-RDT-MIB::rdtGroupIndex" SizeOID "INTEL-RDT-MIB::rdtGroupNumber" - Instance true Plugin "intel_rdt" OIDs "INTEL-RDT-MIB::rdtGroupDescr" @@ -311,7 +309,6 @@ LoadPlugin snmp_agent
IndexOID "INTEL-MCELOG-MIB::memoryGroupIndex" - Instance true Plugin "mcelog" OIDs "INTEL-MCELOG-MIB::memoryGroupDescr" @@ -343,7 +340,6 @@ LoadPlugin snmp_agent # Hugepages
- Instance true Plugin "hugepages" OIDs "INTEL-HUGEPAGES-MIB::hugepagesNode" -- cgit 1.2.3-korg