Module: check_mk
Branch: master
Commit: d433b4b674d9267230bc0bf0fa4ca1a079e5920a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d433b4b674d926…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Aug 23 16:54:23 2014 +0200
#1374 arc_raid_status: moved plugin into main Linux agent
The functionality of the agent plugin <tt>arc_raid_status.sh</tt> has
been moved into the normal <tt>check_mk_agent</tt> for Linux. If you
have deployed the plugin, please remove it. Not doing this does not
do great harm but will result in <tt>cli64 rsf info</tt> called twice
per agent execution.
Note: you still have to manually install <tt>cli64</tt> from
<a
href="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/">ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/</a>
into <tt>/usr/local/bin/</tt>
in order to use this check.
---
.werks/1374 | 17 +++++++++++++++++
ChangeLog | 2 ++
agents/check_mk_agent.linux | 8 ++++++++
agents/plugins/arc_raid_status.sh | 5 -----
4 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/.werks/1374 b/.werks/1374
new file mode 100644
index 0000000..a6e9ce2
--- /dev/null
+++ b/.werks/1374
@@ -0,0 +1,17 @@
+Title: arc_raid_status: moved plugin into main Linux agent
+Level: 1
+Component: checks
+Compatible: incomp
+Version: 1.2.5i6
+Date: 1408805484
+Class: feature
+
+The functionality of the agent plugin <tt>arc_raid_status.sh</tt> has
+been moved into the normal <tt>check_mk_agent</tt> for Linux. If you
+have deployed the plugin, please remove it. Not doing this does not
+do great harm but will result in <tt>cli64 rsf info</tt> called twice
+per agent execution.
+
+Note: you still have to manually install <tt>cli64</tt> from
+<a
href="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/">ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/</a>
into <tt>/usr/local/bin/</tt>
+in order to use this check.
diff --git a/ChangeLog b/ChangeLog
index 11c6b46..ce61549 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,8 @@
* 1372 cisco_vss: new check for monitoring state of Cisco Virtual Switches
* 0648 brocade_fcport: new speed calculation of isl_ports...
* 0649 f5_bigip_pool: check now also prints the node names of down nodes
+ * 1374 arc_raid_status: moved plugin into main Linux agent...
+ NOTE: Please refer to the migration notes!
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index d7002e9..4ad5fbd 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -352,6 +352,14 @@ if type tw_cli > /dev/null ; then
done
fi
+# RAID controllers from areca (Taiwan)
+# cli64 can be found at ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/
+if type cli64
+then
+ echo "<<<arc_raid_status>>>"
+ cli64 rsf info | tail -n +3 | head -n -2
+fi
+
# VirtualBox Guests. Section must always been output. Otherwise the
# check would not be executed in case no guest additions are installed.
# And that is something the check wants to detect
diff --git a/agents/plugins/arc_raid_status.sh b/agents/plugins/arc_raid_status.sh
deleted file mode 100755
index fa3a722..0000000
--- a/agents/plugins/arc_raid_status.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#cli64 can be found at:
-# ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/
-
-echo "<<<arc_raid_status>>>"
-cli64 rsf info | tail -n +3 | head -n -2