Created attachment 288217 [details, diff] apc_nis patch It's that time of the month again, sorry :) I've got two patches here that should be fine to be merged: one has been applied as-is by upstream, while the other is a squashed copy of what upstream committed of two patches of mine (fixed as well). The first patch, for apc_nis plugin, allows to choose which APCUPSD instance to connect to, as the original plugin only allows one. The second patch uses /sys to fetch network interface data, if accessible. This allows a) to get the interface speed without running the plugin as root; b) to actually get the in/out bytes data without running as root on grsec-enabled systems (as /proc is not accessible there). HTH! Diego
Created attachment 288219 [details, diff] if_ and if_err_ patch
diego: your if_ gets it wrong on my wireless card. It needs to read the iw/iwconfig speed first, then try sysfs. +1 otherwise.
I'll see to report it upstream then (since this is what would otherwise go in 2.0 ^^;;).
Created attachment 288293 [details] Fixed if_ patch Here we go, this should be working fine :)
+1
Committed this myself.