Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p/netstat: move established to different graph #1623

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions plugins/node.d.linux/netstat
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [ "$1" = "config" ]; then

echo 'multigraph netstat'
echo 'graph_title Netstat, combined'
echo 'graph_args --units=si -l 1 --base 1000 --logarithmic'
echo 'graph_args --units=si -l 0 --base 1000'
echo 'graph_vlabel TCP connections'
echo 'graph_category network'
echo 'graph_period second'
Expand Down Expand Up @@ -99,11 +99,6 @@ if [ "$1" = "config" ]; then
echo 'resets.info The number of TCP connection resets.'
print_warning resets
print_critical resets
echo 'established.label established'
echo 'established.type GAUGE'
echo 'established.info The number of currently open connections.'
print_warning established
print_critical established

echo ''

Expand Down Expand Up @@ -133,7 +128,6 @@ echo 'multigraph netstat'
/passive connection ope/ { print "passive.value " $1 }
/failed connection/ { print "failed.value " $1 }
/connection resets/ { print "resets.value " $1 }
/connections established/ { print "established.value " $1 }'

echo

Expand Down