Module: check_mk
Branch: master
Commit: 2fde6d98fd6ac55c56d8348bed4bb9d5d8a562d3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2fde6d98fd6ac5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Apr 29 18:06:28 2013 +0200
check_mk_agent.linux: lnx_if: make order deterministical
---
ChangeLog | 1 +
agents/check_mk_agent.linux | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index bf1fd74..9c031fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -77,6 +77,7 @@
* winperf_if: hell has frozen over: a new check for network adapters on Windows
* windows agent: new config section plugins, now able to set timeouts for specific
plugins
new global config option: timeout_plugins_total
+ * lnx_if in Linux agent: force deterministical order of network devices
Notifications:
* notify.py: unique spoolfiles name no longer created with uuid
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index b4b267d..dc137a1 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -174,7 +174,7 @@ echo '<<<lnx_if:sep(58)>>>'
sed 1,2d /proc/net/dev
if type ethtool > /dev/null
then
- for eth in $(sed -e 1,2d < /proc/net/dev | cut -d':' -f1)
+ for eth in $(sed -e 1,2d < /proc/net/dev | cut -d':' -f1 | sort)
do
echo "[$eth]"
ethtool $eth | egrep '(Speed|Duplex|Link detected|Auto-negotiation):'