[[inputs.nstat]] E! open /proc/net/snmp6: no such file or directory

Hi,

I could bypass/ exclude somehow the snmp6?
It is wise to exclude?
telegraf-1.5.0-1.x86_64.rpm
/etc/telegraf/telegraf.conf
[[inputs.nstat]]

[root@server1 ~]# usr/bin/telegraf --config /etc/telegraf/telegraf.conf --test
2017-12-19T08:40:44Z E! open /proc/net/snmp6: no such file or directory

[root@server1 ~]# service snmpd restart
Redirecting to /bin/systemctl restart snmpd.service

[root@server1 ~]# service snmpd status
Redirecting to /bin/systemctl status snmpd.service
● snmpd.service - Simple Network Management Protocol (SNMP) Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmpd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2017-12-19 09:42:58 CET; 2s ago
Main PID: 30457 (snmpd)
CGroup: /system.slice/snmpd.service
└─30457 /usr/sbin/snmpd -LS0-6d -f

Dec 19 09:42:58 server1 systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon…
Dec 19 09:42:58 server1 snmpd[30457]: NET-SNMP version 5.7.2
Dec 19 09:42:58 server1 systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon…

[root@server1 ~]# ls -ltrha /net/snmp6
ls: cannot access /net/snmp6: No such file or directory

Kind Regards,

Try adding adding this option to your config:

[[inputs.nstat]]
  proc_net_snmp6 = "/dev/null"

Can you also let me know what Linux Distro and version you are using?

1 Like

Hi Daniel,

Thank you for support.

[LINUX]
[root@server1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)

[root@server1 ~]# uname -a
Linux server1 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux