From 33500e635c49fc7d6d783e4413b3be92c43e8e10 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 14 Jan 2019 15:16:36 +0100 Subject: [PATCH] Add SNMPv3 support to the Enterprise SNMP Server. Former-commit-id: 8e0edc671caa7c864fa92c3770fca93bb575958d --- pandora_server/conf/pandora_server.conf.new | 5 +++++ pandora_server/lib/PandoraFMS/Config.pm | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pandora_server/conf/pandora_server.conf.new b/pandora_server/conf/pandora_server.conf.new index cf651cfeb3..e635791c31 100644 --- a/pandora_server/conf/pandora_server.conf.new +++ b/pandora_server/conf/pandora_server.conf.new @@ -292,6 +292,11 @@ braa /usr/bin/braa braa_retries 3 +# Location of the pandorafsnmp binary needed by the Enterprise SNMP Server. +# /usr/bin/pandorafsnmp by default (PANDORA FMS ENTERPRISE ONLY). + +fsnmp /usr/bin/pandorafsnmp + # Default group id for new agents created with Pandora FMS Data Server # If this token is enabled and Agent is setup with a fixed group, server settings will override agent settings # If this token is disabled and group is not provided in the agent, or provided group doesn't exist, agent data diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index 7e72cee88c..fab3bc88d7 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -490,6 +490,8 @@ sub pandora_load_config { $pa_config->{'snmp_extlog'} = ""; # 7.0 726 + $pa_config->{"fsnmp"} = "/usr/bin/pandorafsnmp"; # 7.0 732 + # Check for UID0 if ($pa_config->{"quiet"} != 0){ if ($> == 0){ @@ -1123,6 +1125,9 @@ sub pandora_load_config { elsif ($parametro =~ m/^snmp_extlog\s(.*)/i) { $pa_config->{'snmp_extlog'} = clean_blank($1); } + elsif ($parametro =~ m/^fsnmp\s(.*)/i) { + $pa_config->{'fsnmp'}= clean_blank($1); + } } # end of loop for parameter # # Set to RDBMS' standard port