Created attachment 148851 [details] patch for patch-plugins__node.d.freebsd__if_packets_.in Plugin if_packets_ returns no data for physical links and tun interfaces. 2014/11/01 09:05:00 [WARNING] Service if_packets_tun0 on server.ambtec.de/localhost:4949 returned no data for label opackets 2014/11/01 09:05:00 [WARNING] Service if_packets_tun0 on server.ambtec.de/localhost:4949 returned no data for label rpackets 2014/11/01 09:05:15 [WARNING] Service if_packets_re0 on server.ambtec.de/localhost:4949 returned no data for label rpackets 2014/11/01 09:05:15 [WARNING] Service if_packets_re0 on server.ambtec.de/localhost:4949 returned no data for label opackets Attached patch should fix the issue. I'm unsure about the if (NF == 10) case, maybe "rpackets.value", $4; must be adjusted to "rpackets.value", $3; I tested my modifications on FreeBSD 10.0.
auto-assignment failed because title didn't fully specify port. manually assigning to maintainer.
Hum, fun fact, there are 10 fields on freebsd < 8, 11 on 8 and 9, and 12 on 10+ Now, that's easy, but the fourth field can be empty if there is no mac address on the Interface (can happen for tunnels, loopback... So it's not that easy to fix, but thanks for pointing the packets bug, led me to this new issue :-)
A commit references this bug: Author: mat Date: Mon Nov 17 15:04:22 UTC 2014 New revision: 372671 URL: https://svnweb.freebsd.org/changeset/ports/372671 Log: - Fix bugs in if_* (prompted by [1]) - Add a new PERL option to add some extra dependencies needed by some modules (based on [2]) PR: 194733 [1] 195021 [2] Submitted by: Claudius Herder [1] John W. O'Brien [2] Sponsored by: Absolight Changes: head/sysutils/munin-node/Makefile head/sysutils/munin-node/files/patch-node__munin-node.conf.in head/sysutils/munin-node/files/patch-plugins__node.d.freebsd__if_.in head/sysutils/munin-node/files/patch-plugins__node.d.freebsd__if_errcoll_.in head/sysutils/munin-node/files/patch-plugins__node.d.freebsd__if_packets_.in head/sysutils/munin-node/files/patch-plugins__node.d.freebsd__iostat.in head/sysutils/munin-node/files/patch-plugins__node.d__hddtemp_smartctl.in head/sysutils/munin-node/files/patch-plugins__node.d__multiping.in head/sysutils/munin-node/files/patch-plugins__node.d__squeezebox_.in head/sysutils/munin-node/pkg-plist
Created attachment 149532 [details] patch-plugins__node.d.freebsd__if_packets_.in.patch I still need attached patch, else I don't get any values from if_packets_
(In reply to claudius.herder from comment #4) > Created attachment 149532 [details] > patch-plugins__node.d.freebsd__if_packets_.in.patch > > I still need attached patch, else I don't get any values from if_packets_ Damn, yes, thanks.
A commit references this bug: Author: mat Date: Mon Nov 17 21:45:01 UTC 2014 New revision: 372693 URL: https://svnweb.freebsd.org/changeset/ports/372693 Log: Actually make if_packets_ work. PR: 194733 Submitted by: Claudius Herder Sponsored by: Absolight Changes: head/sysutils/munin-node/Makefile head/sysutils/munin-node/files/patch-plugins__node.d.freebsd__if_packets_.in