Bug 247218 - sysutils/munin-node: show currently established TCP connections in netstat plugin
Summary: sysutils/munin-node: show currently established TCP connections in netstat pl...
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Florian Smeets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-13 00:10 UTC by nusenu
Modified: 2023-01-27 23:16 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nusenu 2020-06-13 00:10:42 UTC
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 }'
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2020-08-26 13:49:50 UTC
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.
Comment 2 Florian Smeets freebsd_committer freebsd_triage 2023-01-27 23:16:46 UTC
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.