Skip to content

Commit

Permalink
plugin(ifaceerrors): Extend to detect dropped packages and carrier ch…
Browse files Browse the repository at this point in the history
…anges
  • Loading branch information
iranzo committed Aug 25, 2023
1 parent 7efd5cd commit ca18cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion risuclient/plugins/core/network/interface-errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IFACES_IN_SYSTEM=$(grep -i "state UP" ${IP_ADDRESS_FILE} | cut -f2 -d ":" | tr -

# Check all interfaces
for iface in ${IFACES_IN_SYSTEM}; do
IFACEPATH=$(find ${RISU_ROOT}/sys | grep net | grep ${iface} | grep errors)
IFACEPATH=$(find ${RISU_ROOT}/sys | grep net | grep ${iface} | grep -E 'errors|dropped|carrier_changes')

for file in ${IFACEPATH}; do
CONTENT=$(cat ${file})
Expand Down

0 comments on commit ca18cb2

Please sign in to comment.