Another thing I googled until I was all googled out and couldn’t find an answer, so for future explorers who pass by here, here’s the fix…
If you’re running munin and you suddenly notice the number of netstat passive connections is constantly increasing in a linear fashion, rest assured it’s not your server that’s busy beating itself into oblivion. It’s a munin bug that’s easily fixed.
If you run netstat and get something like this:
netstat -s|grep passive
3339672 passive connection openings
7574 passive connections rejected because of time stamp
…then it’s the passive connections rejected that’s confusing munin.
To fix this edit:
/usr/share/munin/plugins/netstat
and change the line
netstat -s | awk ‘/active connections/ { print “active.value ” $1 } /passive connection/ { print “passive.value ” $1 } /failed connection/ { print “failed.value ” $1 } /connection resets/ { print “resets.value ” $1 } /connections established/ { print “established.value ” $1 }’
to
netstat -s | awk ‘/active connections/ { print “active.value ” $1 } /passive connection openings/ { print “passive.value ” $1 } /failed connection/ { print “failed.value ” $1 } /connection resets/ { print “resets.value ” $1 } /connections established/ { print “established.value ” $1 }’
Leave a Reply