Module: check_mk
Branch: master
Commit: 5887711f63d30fab62bf7455ee9145471a95de53
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5887711f63d30f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 26 16:34:11 2015 +0100
#2040 Allow commands for setting downtimes and acknowledging on BI aggregates
The commands for scheduling downtimes and for acknowledging problems and removing
acknowledgements now can be done on BI aggregates. This is the same as performing
these commands on all hosts and services that are contained in the selected
BI aggregates. Note: removing downtimes currently does not work that way.
---
.werks/2040 | 12 ++++
ChangeLog | 1 +
mkeventd/web/plugins/visuals/mkeventd.py | 2 +
web/htdocs/bi.py | 2 -
web/htdocs/views.py | 19 ++++--
web/plugins/views/commands.py | 92 +++++++++++++++++++++++-------
web/plugins/visuals/infos.py | 12 ++++
7 files changed, 112 insertions(+), 28 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=5887711f63…
Module: check_mk
Branch: master
Commit: 3e8cc2dc822b4b041aa934d8978328748cc1435c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3e8cc2dc822b4b…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Feb 26 16:27:38 2015 +0100
Added manpages for sansymphony checks
---
agents/windows/plugins/sansymphony.ps1 | 24 ++++++++++++++++++++++++
checkman/sansymphony_alerts | 13 +++++++++++++
checkman/sansymphony_pool | 19 +++++++++++++++++++
checkman/sansymphony_ports | 14 ++++++++++++++
checkman/sansymphony_serverstatus | 15 +++++++++++++++
checkman/sansymphony_virtualdiskstatus | 14 ++++++++++++++
modules/catalog.py | 1 +
7 files changed, 100 insertions(+)
diff --git a/agents/windows/plugins/sansymphony.ps1 b/agents/windows/plugins/sansymphony.ps1
index e697b50..388d314 100644
--- a/agents/windows/plugins/sansymphony.ps1
+++ b/agents/windows/plugins/sansymphony.ps1
@@ -1,6 +1,30 @@
# check_datacore.ps1
# Version 0.2
# Author : Andre Eckstein, Andre.Eckstein(a)Bechtle.com
+# Prerequisites
+# -------------
+# 1. Datacore SANsymphony V8 or V9 must be installed
+# SANmelody and Sansymphony are not supported.
+#
+# 2. The SANsymphony CMDlets need to be installed on the monitored Datacore Server
+# If not installed you need to install the CMDlets with the SANsymphony V installation routine.
+# - Enabling of .net 4 Framwork support in PowerShell
+# Support for .net 4 must be enabled. To achieve this, create a file with the name powershell.exe.config with the following content:
+#
+# <?xml version="1.0" encoding="utf-8" ?>
+# <configuration>
+# <startup useLegacyV2RuntimeActivationPolicy="true">
+# <supportedRuntime version="v4.0"/>
+# <supportedRuntime version="v2.0.50727" />
+# </startup>
+# </configuration>
+#
+# And just put that file into the following directories:
+# c:\windows\system32\WindowsPowerShell\v1.0\ and c:\windows\sysWOW64\WindowsPowerShell\v1.0\
+#
+# 3. A working Check_MK agent on the monitored host
+# Be sure that the Check_MK agent is working without the sansymphony.ps1 plugin. You can verify this by calling telnet <servername or ip> 6556.
+# There should be a lot text output showing the different sections.
#configuration:
diff --git a/checkman/sansymphony_alerts b/checkman/sansymphony_alerts
new file mode 100644
index 0000000..ea2a8e3
--- /dev/null
+++ b/checkman/sansymphony_alerts
@@ -0,0 +1,13 @@
+title: Sansymphony: Alerts
+agents: windows
+catalog: app/sansymphony
+license: GPL
+distribution: check_mk
+description:
+ This check measures the current amount of unacknowlegded alerts reported by the sansymphony management.
+ Levels for {WARN} and {CRIT} can be specified for the number of alerts.
+
+ The windows agent needs to be extended with the sansymphony.ps1 provided in agents/windows/plugins.
+
+inventory:
+ One service will be created
diff --git a/checkman/sansymphony_pool b/checkman/sansymphony_pool
new file mode 100644
index 0000000..fc664cf
--- /dev/null
+++ b/checkman/sansymphony_pool
@@ -0,0 +1,19 @@
+title: Sansymphony: Pool
+catalog: app/sansymphony
+agents: windows
+distribution: check_mk
+license: GPL
+description:
+
+ This check measures if the dynamic pool is running, if the cache is in ReadWrite mode and the filling rate of the reported pool allocation.
+ If the dynamic pool not running, {CRIT} will be reported.
+ If the cache is not in ReadWrite mode, also {CRIT} will be reported.
+ Also it is possible to set levels to the measured filling rate of the disk pool allocation.
+
+ The windows agent needs to be extended with the sansymphony.ps1 provided in agents/windows/plugins.
+
+Performance data:
+ The check outputs the disk pool allocation in percent.
+
+Inventory:
+ One service will be created
diff --git a/checkman/sansymphony_ports b/checkman/sansymphony_ports
new file mode 100644
index 0000000..fca81f0
--- /dev/null
+++ b/checkman/sansymphony_ports
@@ -0,0 +1,14 @@
+title: Sansymphony: Ports
+agents: windows
+catalog: app/sansymphony
+distribution: check_mk
+license: GPL
+description:
+ This check measures the port status of the reported port states by the sansymphony management.
+ If the port state is up, {OK} will be reported.
+ If the port state is down, {CRIT} will be reported.
+
+ The windows agent needs to be extended with the sansymphony.ps1 provided in agents/windows/plugins.
+
+Inventory:
+ One service will be created
diff --git a/checkman/sansymphony_serverstatus b/checkman/sansymphony_serverstatus
new file mode 100644
index 0000000..810e126
--- /dev/null
+++ b/checkman/sansymphony_serverstatus
@@ -0,0 +1,15 @@
+title: Sansymphony: Serverstatus
+agents: windows
+catalog: app/sansymphony
+distribution: check_mk
+license: GPL
+description:
+
+ This check measures the status of the server and cache state reported by the sansymphony management.
+ If the serverstatus is Online, {OK} will be reported. Offline will lead to a {CRIT} state.
+ If the cache not is in WritebackGlobal mode, {CRIT} will be reported.
+
+ The windows agent needs to be extended with the sansymphony.ps1 provided in agents/windows/plugins.
+
+Inventory:
+ One service will be created
diff --git a/checkman/sansymphony_virtualdiskstatus b/checkman/sansymphony_virtualdiskstatus
new file mode 100644
index 0000000..d6718cd
--- /dev/null
+++ b/checkman/sansymphony_virtualdiskstatus
@@ -0,0 +1,14 @@
+title: Sansymphony: Virtualdiskstatus
+agents: windows
+catalog: app/sansymphony
+distribution: check_mk
+license: GPL
+description:
+
+ This check measures the state of the virtualdiskstatus reported by the sansymphony management.
+ If the virtualdiskstatus is Online, {OK} will be reported. Otherwise the check reports a {CRIT} state.
+
+ The windows agent needs to be extended with the sansymphony.ps1 provided in agents/windows/plugins.
+
+Inventory:
+ One service will be created
diff --git a/modules/catalog.py b/modules/catalog.py
index 8db56f1..c9e52e9 100644
--- a/modules/catalog.py
+++ b/modules/catalog.py
@@ -106,6 +106,7 @@ manpage_catalog_titles = {
"sap" : "SAP R/3",
"tsm" : "IBM Tivoli Storage Manager (TSM)",
"unitrends" : "Unitrends",
+ "sansymphony" : "Datacore SANsymphony",
"os" : "Operating Systems",
"aix" : "AIX",
Module: check_mk
Branch: master
Commit: a5345dd3f235e88cadaf02962a4ee67253da7fe4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a5345dd3f235e8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 26 14:48:45 2015 +0100
Updated bug entries #2289
---
.bugs/2289 | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.bugs/2289 b/.bugs/2289
new file mode 100644
index 0000000..7045da7
--- /dev/null
+++ b/.bugs/2289
@@ -0,0 +1,10 @@
+Title: "Host is not managed by WATO" link to other WATO in non distributed WATO setup
+Component: multisite
+State: open
+Date: 2015-02-26 14:48:24
+Targetversion: future
+Class: feature
+
+In distributed multisite setups, but non distributed WATO setups it would
+be nice to have a link to the remote WATO instead of a simple exception
+that the host is not managed by the local WATO.
Module: check_mk
Branch: master
Commit: efd56aa0dc2b4126edadc1e472ad9fcdf94c2594
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=efd56aa0dc2b41…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 26 15:50:20 2015 +0100
#2022 FIX SNMP: Fixed handling of backslashes in SNMP data
Some checks like the hr_fs checks e.g. create services with
backslashes in the service descriptions when monitoring
windows filesystems. Those services were named "Filesystem c:\\..."
for example, which was using a double backslash which is wrong.
This behaviour has now been changed to just use a single slash.
With this change your services will be reported as UNKNOWN when
you have such services with double backslashes in their names.
You will then need to rediscover the services to get them with
just a single slash. If you like to keep the performance graph
history, you will need to migrate them on your own.
---
.werks/2022 | 19 +++++++++++++++++++
ChangeLog | 2 ++
modules/snmp.py | 6 +++++-
3 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/.werks/2022 b/.werks/2022
new file mode 100644
index 0000000..ca275be
--- /dev/null
+++ b/.werks/2022
@@ -0,0 +1,19 @@
+Title: SNMP: Fixed handling of backslashes in SNMP data
+Level: 2
+Component: checks
+Compatible: incomp
+Version: 1.2.7i1
+Date: 1424962027
+Class: fix
+
+Some checks like the hr_fs checks e.g. create services with
+backslashes in the service descriptions when monitoring
+windows filesystems. Those services were named "Filesystem c:\\..."
+for example, which was using a double backslash which is wrong.
+This behaviour has now been changed to just use a single slash.
+
+With this change your services will be reported as UNKNOWN when
+you have such services with double backslashes in their names.
+You will then need to rediscover the services to get them with
+just a single slash. If you like to keep the performance graph
+history, you will need to migrate them on your own.
diff --git a/ChangeLog b/ChangeLog
index 6f9d88e..cee1858 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -200,6 +200,8 @@
* 2048 FIX: netapp_api_fan, netapp_api_psu, netapp_api_temp: fixed typo in service description Shelfes -> Shelves
NOTE: Please refer to the migration notes!
* 2021 FIX: if_lancom: Also used for checking ELSA/T-Systems branded devices
+ * 2022 FIX: SNMP: Fixed handling of backslashes in SNMP data...
+ NOTE: Please refer to the migration notes!
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request, added mailto link for error report...
diff --git a/modules/snmp.py b/modules/snmp.py
index 4225dc4..cbd955f 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -41,7 +41,11 @@ def strip_snmp_value(value, hex_plain = False):
if len(v) > 2 and is_hex_string(v):
return not hex_plain and convert_from_hex(v) or value
else:
- return v.strip()
+ # Fix for non hex encoded string which have been somehow encoded by the
+ # netsnmp command line tools. An example:
+ # Checking windows systems via SNMP with hr_fs: disk names like c:\
+ # are reported as c:\\, fix this to single \
+ return v.strip().replace('\\\\', '\\')
else:
return v