SNMP Polling Very slow boot up time

Thanks for your answer @Badger. It took some time to adjust the configuration but now I'm getting an expected error when I have more then 1 host setup.

logstash_1  | [2020-08-18T16:33:31,303][ERROR][logstash.inputs.snmp     ][main][b3a79bf1dba072a1da231cabed21723413181cbdac22fdf837bfbac87468244f] error invoking table operation on OID: oid.ALPHA-RESOURCE-MIB::componentListConfiguredName.36, ignoring {:exception=>#<LogStash::SnmpClientError: error sending snmp table request to target : >, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.2.2/lib/logstash/inputs/snmp/base_client.rb:119:in `block in table'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.2.2/lib/logstash/inputs/snmp/base_client.rb:114:in `table'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.2.2/lib/logstash/inputs/snmp.rb:189:in `block in run'", "org/jruby/RubyArray.java:1809:in `each'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.2.2/lib/logstash/inputs/snmp.rb:187:in `block in run'", "org/jruby/RubyArray.java:1809:in `each'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.2.2/lib/logstash/inputs/snmp.rb:167:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:345:in `inputworker'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:336:in `block in start_input'"]}

This is my configuration file with some strings/hosts changed.

input {


    snmp {
        interval => 30

        tables => [

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListConfiguredName.34" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.3.34" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListConfiguredName.35" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.3.35" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListConfiguredName.36" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.3.36" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListSystemPointer.35" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.7.35" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListSystemPointer.36" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.7.36" ] }

        ]

        # List of hosts to poll
        hosts => [ 
              {host => "udp:Hostname1/161" community => "public" version => "2c"  retries => 2  timeout => 1000 }, 
              {host => "udp:hostname2/161" community => "public" version => "2c"  retries => 2  timeout => 1000 } 
        ]

        add_field => {
            "[@metadata][projectId]" => 1
            "[@metadata][collectionId]" => 1
        }
    }

}

On the other hand this is a working configuration:

input {


    snmp {
        interval => 600

        tables => [

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListConfiguredName.34" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.3.34" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListConfiguredName.35" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.3.35" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListConfiguredName.36" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.3.36" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListSystemPointer.35" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.7.35" ] } ,

            { "name" => "oid.ALPHA-RESOURCE-MIB::componentListSystemPointer.36" "columns" => [ "1.3.6.1.4.1.7309.5.2.1.2.1.7.36" ] }

        ]

        hosts => [{host => "udp:HOSTNAME1/161" community => "public" version => "2c"  retries => 2  timeout => 1000 } ]

        add_field => {
            "[@metadata][projectId]" => 1
            "[@metadata][collectionId]" => 1
        }
    }


}

I tried making the configuration all one line for hosts it didn't seem to make any difference. Any thoughts?

UPDATE:: I misspoke, it seems to be an issue with some of the MIBs i was using, not the config. The Alpha PDU oids are not working for some reason.