sensu-plugins / sensu-plugins-network-checks

This plugin provides native network instrumentation for monitoring and metrics collection, including: hardware, TCP response, RBLs, whois, port status, and more.

Home Page:http://sensu-plugins.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

metrics-netstat-tcp.rb fails when IPv6 is disabled

MattMencel opened this issue · comments

Check failed to run: No such file or directory @ rb_sysopen - /proc/net/tcp6

I opened a PR to fix this.

@MattMencel I don't see an open pr should this be closed?

Already merged...

#45

has this issue fixed? I am getting same error:

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.9 (Santiago)

$ sudo /opt/sensu/embedded/bin/metrics-netstat-tcp.rb Check failed to run: No such file or directory @ rb_sysopen - /proc/net/tcp6, ["/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-network-checks-3.1.1/bin/metrics-netstat-tcp.rb:88:in initialize'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-network-checks-3.1.1/bin/metrics-netstat-tcp.rb:88:in open'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-network-checks-3.1.1/bin/metrics-netstat-tcp.rb:88:in netstat'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-network-checks-3.1.1/bin/metrics-netstat-tcp.rb:114:in run'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-plugin/cli.rb:58:in block in class:CLI'"]`

did you try to disable ipv6 with the option added in that PR? Please include the full command you are running.

just tried "--disabletcp6" and it worked