diff --git a/pandora_server/conf/pandora_server.conf.new b/pandora_server/conf/pandora_server.conf.new index e6a3ed4765..8a4c8b6901 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 78ddb1ad8b..67fd0b710a 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