Add netstat -s to nio-diagnose (#2977)

Motivation:

netstat -s can identify many system-wide issues that may be useful extra
data. There's no reason not to collect it.

Modifications:

Add netstat -s to the nio-diagnose script.

Result:

Better diagnostics
This commit is contained in:
Cory Benfield authored and GitHub committed 2024-11-18 17:40:00 +00:00
1 parent d8363850ce
commit ae87ce5056
1 file changed
+11
+11
View File
@@ -366,6 +366,16 @@ function analyse_process() {
analyse_syscalls "$pid"
}
function produce_network_stats() {
declare -a command
command=( netstat -s )
output "### System-wide network statistics"
output
run_and_print "${command[@]}"
}
number_of_nio_pids=0
output "# NIO diagnose ($(shasum "${BASH_SOURCE[0]}"))"
@@ -378,6 +388,7 @@ analyse_system_versions
analyse_tcp_conns
analyse_udp
analyse_uds
produce_network_stats
analyse_procs
analyse_ulimit