The description of the munin netstat plugin says it shows "The number of currently open connections". Currently this is not the case, this proposed change aims to fix this. Tested on FreeBSD 11.3 and 12.1. 88c88 < echo 'established.type DERIVE' --- > echo 'established.type GAUGE' 102c102 < /connections established/ { print "established.value " $1 }' --- > /in ESTABLISHED state/ { print "established.value " $1 }'
I don't think you can change the type of an existing DS. You may want to create a new one with this new data. Also, while this is an issue related to FreeBSD, this plugin is provided by munin directly, you should open an issue directly with them, here https://github.com/munin-monitoring/munin/issues Let me know when you have opened an issue there, so I can close this one here.
What's wrong here is the description of the value. It's not the currently established connections, it's more a established connection rate. It's the number of connections that were established over the last timepriod since munin queried the values. Mat was right, this should be taken upstream. It would make more sense to search for "connections in ESTABLISHED state" in netstat -s output when you want to graph the currently established connections.