Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config option for non-standard host defaults #27

Open
axrayn opened this issue May 15, 2019 · 1 comment
Open

Config option for non-standard host defaults #27

axrayn opened this issue May 15, 2019 · 1 comment
Labels
enhancement New feature or request plugin:input-snmp

Comments

@axrayn
Copy link

axrayn commented May 15, 2019

@colinsurprenant Could we do a config option so that users could specify the 'default' options that are the defaults for their environment without having to list them in every host entry?

e.g. instead of the plugin defaults for community, version, retries, and timeout (public, 2c, 2, 1000 respectively) and needing to use the config:

input {
  snmp {
    get => ["1.3.6.1.2.1.1.1.0"]
    hosts => [
        {host => "udp:127.0.0.1/161" community => "notpublic" retries => 1 timeout => 2000},
        {host => "udp:192.168.0.1/161" community => "notpublic" retries => 1 timeout => 2000}
    ]
  }
}

having a 'host_defaults' options so that users can specify their defaults:

input {
  snmp {
    get => ["1.3.6.1.2.1.1.1.0"]
    host_defaults => {community => "notpublic" retries => 1 timeout => 2000}
    hosts => [
        {host => "udp:127.0.0.1/161"},
        {host => "udp:192.168.0.1/161"}
    ]
  }
}

host parameters would then be checked in the order of hosts entry, host defaults, plugin defaults.

@colinsurprenant
Copy link

@axrayn +1 good idea.

@colinsurprenant colinsurprenant added the enhancement New feature or request label Jul 30, 2019
@edmocosta edmocosta transferred this issue from logstash-plugins/logstash-input-snmp May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin:input-snmp
Projects
None yet
Development

No branches or pull requests

3 participants