Module: check_mk
Branch: master
Commit: 4f11259ceaa497911b926522c843e642622c97e1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4f11259ceaa497…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Nov 5 10:14:45 2018 +0100
6809 FIX aix_if: Transmit/Receive errors are no longer ignored
Change-Id: I7f4bc1954047ebffa006cfb583d3f75902410910
---
.werks/6809 | 11 +++++++++++
agents/check_mk_agent.aix | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/6809 b/.werks/6809
new file mode 100644
index 0000000..ab7abaa
--- /dev/null
+++ b/.werks/6809
@@ -0,0 +1,11 @@
+Title: aix_if: Transmit/Receive errors are no longer ignored
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1541408976
+
+
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index e067df4..3436368 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -202,8 +202,8 @@ echo "<<<aix_if>>>"
for ent in $(ifconfig -a | grep '^en' | cut -d ":" -f 1)
do
echo "[$ent]"
- entstat $ent | grep -E
"(^Hardware|^Bytes:|^Packets:|^Transmit:|^Broadcast:|^Multicast:)"
- entstat $ent | grep -p "Driver Flags:"
+ entstat "$ent" | grep -E
"(^Hardware|^Bytes:|^Packets:|^Transmit|^Broadcast:|^Multicast:)"
+ entstat "$ent" | grep -p "Driver Flags:"
done