Skip to content

Commit

Permalink
Collect conntrack info
Browse files Browse the repository at this point in the history
  • Loading branch information
nithu0115 authored and mogren committed Jun 3, 2020
1 parent 707fc57 commit 4ebf57d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion log-collector-script/linux/eks-log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export LANG="C"
export LC_ALL="C"

# Global options
readonly PROGRAM_VERSION="0.6.1"
readonly PROGRAM_VERSION="0.6.2"
readonly PROGRAM_SOURCE="https://github.com/awslabs/amazon-eks-ami/blob/master/log-collector-script/"
readonly PROGRAM_NAME="$(basename "$0" .sh)"
readonly PROGRAM_DIR="/opt/log-collector"
Expand Down Expand Up @@ -435,6 +435,12 @@ get_sysctls_info() {
get_networking_info() {
try "collect networking infomation"

# conntrack info
echo "*** Output of conntrack -S *** " >> "${COLLECT_DIR}"/networking/conntrack.txt
timeout 75 conntrack -S >> "${COLLECT_DIR}"/networking/conntrack.txt
echo "*** Output of conntrack -L ***" >> "${COLLECT_DIR}"/networking/conntrack.txt
timeout 75 conntrack -L >> "${COLLECT_DIR}"/networking/conntrack.txt

# ifconfig
timeout 75 ifconfig > "${COLLECT_DIR}"/networking/ifconfig.txt

Expand Down

0 comments on commit 4ebf57d

Please sign in to comment.