Module: check_mk
Branch: master
Commit: ab2dc9eff864889b6df9124d3cf653ad9ae441c1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ab2dc9eff86488…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Feb 3 13:56:32 2017 +0100
4020 windows/megaraid.bat: now also provides information for the megaraid_bbu check
(Battery Backup Unit)
Change-Id: Idebc32fde02f70806160eafa8a22d9e3806ca239
---
.werks/4020 | 9 +++++++++
ChangeLog | 1 +
agents/windows/plugins/megaraid.bat | 4 ++++
3 files changed, 14 insertions(+)
diff --git a/.werks/4020 b/.werks/4020
new file mode 100644
index 0000000..5d7bbbf
--- /dev/null
+++ b/.werks/4020
@@ -0,0 +1,9 @@
+Title: windows/megaraid.bat: now also provides information for the megaraid_bbu check
(Battery Backup Unit)
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i4
+Date: 1486126523
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index bf87a7c..c16c2cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,7 @@
* 4334 mssql_instance: now the connection status is configurable
* 4336 diskstat: now detects NVMe drives, eg. solid-state drives
* 4019 Windows powershell scripts are now always called with the options -noprofile
-executionpolicy bypass...
+ * 4020 windows/megaraid.bat: now also provides information for the megaraid_bbu check
(Battery Backup Unit)
* 4171 FIX: perle_psmu: fixed value error...
* 4172 FIX: smart.temp: fixed discovery and check function...
* 4173 FIX: if.include: ignore some more keys in 'Network interfaces and switch
ports' rule which are only used for interface grouping
diff --git a/agents/windows/plugins/megaraid.bat b/agents/windows/plugins/megaraid.bat
index 889e716..de05916 100644
--- a/agents/windows/plugins/megaraid.bat
+++ b/agents/windows/plugins/megaraid.bat
@@ -60,6 +60,10 @@ REM get logical disc info
ECHO ^<^<^<megaraid_ldisks^>^>^>
"!MegaCli!" -LDInfo -Lall -aALL -NoLog | FINDSTR "Size State Number
Adapter Virtual"
+REM get bbu info
+ECHO ^<^<^<megaraid_bbu^>^>^>
+"!MegaCli!" -AdpBbuCmd -GetBbuStatus -aAll -NoLog | FINDSTR /V
"Exit"
+
REM delete tmpfiles
DEL "!tmpfile!"
DEL "!enclist!"