Snmp input plugin doesn't show any activity when configuring snmpv3

Hi all,

I'm trying to get the snmp input plugin work using SNMPv3 and, if the plugin doesn't show any error on start up, It doesn't retreive any information either.

I'm using logstash 6.5 with the following configuration:

snmp {
walk => [""]
auth_pass => "the_good_pass"
auth_protocol => "sha"
priv_pass => "the_good_passwd"
priv_protocol => "aes"
security_name => "the_good_sec_name"
security_level => "authPriv"
hosts => [{host => "udp:my_ip_address/161" community => "my_community" version => "3"}]
type => "snmp"
id => "snmp"

tried to put logstash on debug in order to see what's going on but the only information regarding this plugin is :

[2018-11-30T12:16:19,409][INFO ][logstash.inputs.snmp ] using plugin provided MIB path /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-snmp-1.0.0/lib/mibs/logstash
Nov 30 12:16:19 OPCOLLOG40 logstash: [2018-11-30T12:16:19,508][INFO ][logstash.inputs.snmp ] using plugin provided MIB path /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-snmp-1.0.0/lib/mibs/ietf

when using snmpwalk :
[AAA@YYY conf.d]# snmpwalk -v3 -c my_community -l authPriv -u the_good_name -a sha -A "the_good_pass" -x aes -X "pass" my_server:161
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2
UCD-SNMP-MIB::dskIndex.3 = INTEGER: 3
UCD-SNMP-MIB::dskIndex.4 = INTEGER: 4
UCD-SNMP-MIB::dskIndex.5 = INTEGER: 5
UCD-SNMP-MIB::dskIndex.6 = INTEGER: 6
UCD-SNMP-MIB::dskIndex.8 = INTEGER: 8
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskPath.2 = STRING: /usr
UCD-SNMP-MIB::dskPath.3 = STRING: /var
UCD-SNMP-MIB::dskPath.4 = STRING: /home
UCD-SNMP-MIB::dskPath.5 = STRING: /mysql
UCD-SNMP-MIB::dskPath.6 = STRING: /storage
UCD-SNMP-MIB::dskPath.8 = STRING: /backup
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/mapper/rootvg-root_lv
UCD-SNMP-MIB::dskDevice.2 = STRING: /dev/mapper/rootvg-usr_lv
UCD-SNMP-MIB::dskDevice.3 = STRING: /dev/mapper/rootvg-var_lv
UCD-SNMP-MIB::dskDevice.4 = STRING: /dev/mapper/rootvg-home_lv
UCD-SNMP-MIB::dskDevice.5 = STRING: /dev/mapper/datavg-mysql_lv
UCD-SNMP-MIB::dskDevice.6 = STRING: /dev/mapper/datavg-storage_lv
UCD-SNMP-MIB::dskDevice.8 = STRING: /dev/mapper/datavg-backup_lv
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.2 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.3 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.4 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.5 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.6 = INTEGER: -1

Could you help me debug my configuration ?


What does your output look like?

Also I notice in the input your specifying a security_name parameter, but in your snmpwalk command it has a different value?

Nothing : no errors, no logs, no data.

When looking at the pipeline statistics, I can see that there is no data in.

So for me, it just don’t start correctly.

I’m on RHEL7.1 using oracle java 1.8.

Your output config I meant :slight_smile:

No, I’ved double check all the parameters.

There are ok.

I have set the output to stdout { codec => rubydebug }

Are you running logstash as a service?

Yes I am.

If you do "journalctl --unit=logstash -f" do you see anything being output to stdout?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.