If your running Munin in WHM they you may have noticed the passive netstat connections have been rising steadily over the last couple of weeks. This isn't a problem with your server, its a Munin bug that can be easily fixed.

Firstly I need to thank Mark Maunder for this fix, I made the mistake of spending three or four hours trying to fix this myself, before I stumbled across his article. To see the original article please click here.
Apparently the problem stemms from Munin counting the passive connections rejected. You can fix this problem quite easily by following the instructions below.
SSH into your server. If you don't know how to do this then please read this tutorial.
Edit the following file:
/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 }’
Just in case you can't spot the difference, you need to change the "/passive connection/" to "/passive connection openings/".
Be the first to leave a message below