Skip to content

couldn't get SNMP6 stats on IPv6 disabled systems #717

@stephan2012

Description

@stephan2012

Host operating system: output of uname -a

Linux testhost 3.10.0-693.2.2.el7.x86_64 #1 SMP Sat Sep 9 03:55:24 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 0.15.0 (branch: HEAD, revision: 6e2053c557f96efb63aef3691f15335a70baaffd)
  build user:       root@168089f37ad9
  build date:       20171006-11:33:58
  go version:       go1.9.1

node_exporter command line flags

/usr/local/sbin/node_exporter --web.listen-address=0.0.0.0:3001 --collector.nfs

Are you running node_exporter in Docker?

No

What did you do that produced an error?

Run node_exporter on a IPv6 disabled Linux system (Linux kernel boot parameter ipv6.disable=1)

What did you expect to see?

No errors

What did you see instead?

node_exporter fills syslog with the error message

ERROR: netstat collector failed after 0.000297s: couldn't get SNMP6 stats: open /proc/net/snmp6: no such file or directory

node_exporter should not try to access IPv6 related information on an IPv6 disabled system. Maybe suspending accessing /proc/net/snmp6 after first failed attempt would be an option.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions