Module: check_mk
Branch: master
Commit: 04b4b2f95547d6af5c67a40d89c88c6e4cda2633
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=04b4b2f95547d6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Apr 4 17:16:27 2014 +0200
Updated Werk description
---
.werks/786 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.werks/786 b/.werks/786
new file mode 100644
index 0000000..a099da4
--- /dev/null
+++ b/.werks/786
@@ -0,0 +1,15 @@
+Title: zfsget: fixed compatibility with older Solaris agents
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i2
+Date: 1396620030
+
+The check zfsget expected more fields in the section zfsget than
+that the check_mk_agent.solaris delivered - the fstype was missing
+This caused an exception in the zfsget check.
+
+The problem has been fixed in the check itself, so it can handle
+both agent output versions. Now its also fixed in the agent output.
+
Module: check_mk
Branch: master
Commit: e92db8e1bb5629cd55268a70b734e09a0f1f6f62
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e92db8e1bb5629…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Apr 4 16:03:21 2014 +0200
FIX check_mk_agent.solaris: fixed problem with section <<<zfsget>>>
The check zfsget expected more fields in the section zfsget than
that the check_mk_agent.solaris delivered - the fstype was missing
This caused an exception in the zfsget check.
The problem has been fixed in the check itself, so it can handle
both agent output versions. Now its also fixed in the agent output.
---
.werks/786 | 15 +++++++++++++++
ChangeLog | 1 +
agents/check_mk_agent.solaris | 2 +-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/786 b/.werks/786
new file mode 100644
index 0000000..f8a89d8
--- /dev/null
+++ b/.werks/786
@@ -0,0 +1,15 @@
+Title: check_mk_agent.solaris: fixed problem with section <<<zfsget>>>
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1396620030
+
+The check zfsget expected more fields in the section zfsget than
+that the check_mk_agent.solaris delivered - the fstype was missing
+This caused an exception in the zfsget check.
+
+The problem has been fixed in the check itself, so it can handle
+both agent output versions. Now its also fixed in the agent output.
+
diff --git a/ChangeLog b/ChangeLog
index 26181a9..81e4b5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
* 0150 printer_suply: New option to upturn toner levels...
* 0801 ibm_svc_eventlog: New Check for Messages in Event log of IBM SVC / V7000 devices
* 0777 FIX: special agent emcvnx: did not work with security file authentication...
+ * 0786 FIX: check_mk_agent.solaris: fixed problem with section <<<zfsget>>>...
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled by filter)
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index e2d7b80..435ded5 100644
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -126,7 +126,7 @@ then
echo '<<<zfsget>>>'
zfs get -Hp name,quota,used,avail,mountpoint,type
echo '[df]'
- df -l -k -F zfs 2>/dev/null | sed 1d
+ df -l -k -T -F zfs 2>/dev/null | sed 1d
fi
Module: check_mk
Branch: master
Commit: ec46f6a01ed1b6f68e2cdaeb1aaf28e1cb68ae3c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ec46f6a01ed1b6…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Apr 4 13:59:42 2014 +0200
IBM SVC checks: added hint for special agents in check manpages
---
checkman/ibm_svc_eventlog | 5 +++++
checkman/ibm_svc_host | 5 +++++
checkman/ibm_svc_license | 5 +++++
checkman/ibm_svc_mdisk | 5 +++++
checkman/ibm_svc_mdiskgrp | 5 +++++
checkman/ibm_svc_node | 5 +++++
checkman/ibm_svc_nodestats.cache | 5 +++++
checkman/ibm_svc_nodestats.cpu_util | 5 +++++
checkman/ibm_svc_nodestats.diskio | 5 +++++
checkman/ibm_svc_system | 5 +++++
checkman/ibm_svc_systemstats.cache | 5 +++++
checkman/ibm_svc_systemstats.cpu_util | 5 +++++
checkman/ibm_svc_systemstats.diskio | 5 +++++
13 files changed, 65 insertions(+)
diff --git a/checkman/ibm_svc_eventlog b/checkman/ibm_svc_eventlog
index 5b6fc24..006b209 100644
--- a/checkman/ibm_svc_eventlog
+++ b/checkman/ibm_svc_eventlog
@@ -8,6 +8,11 @@ description:
and not yet fixed. Returns {WARN} if there is at least one and {OK} if
there is none.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
inventory:
Creates exactly one check on every IBM SVC / V7000 device named
IBM SVC Eventlog.
diff --git a/checkman/ibm_svc_host b/checkman/ibm_svc_host
index 9a43898..5e78d0c 100644
--- a/checkman/ibm_svc_host
+++ b/checkman/ibm_svc_host
@@ -11,6 +11,11 @@ description:
any unidentified status the check returns {WARN}. If some hosts report
{offline} status the check returns {CRIT}.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
perfdata:
Five values are reported: The number of hosts reporting
active, inactive, degraded, offline and unidentified status.
diff --git a/checkman/ibm_svc_license b/checkman/ibm_svc_license
index 9147643..bf40d7a 100644
--- a/checkman/ibm_svc_license
+++ b/checkman/ibm_svc_license
@@ -8,6 +8,11 @@ description:
of licenses is compared to the usage of licenses. The check returns
{CRIT} if the usage is higher than the licensing and {OK} otherwise.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
The name of the licensable feature. This is everything after used_ or
license_ in the output of the lslicense command.
diff --git a/checkman/ibm_svc_mdisk b/checkman/ibm_svc_mdisk
index 39cc756..d8f4703 100644
--- a/checkman/ibm_svc_mdisk
+++ b/checkman/ibm_svc_mdisk
@@ -13,6 +13,11 @@ description:
The worst of both is returned as check result.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
The name of the MDisk.
diff --git a/checkman/ibm_svc_mdiskgrp b/checkman/ibm_svc_mdiskgrp
index 7f5846d..c89bf11 100644
--- a/checkman/ibm_svc_mdiskgrp
+++ b/checkman/ibm_svc_mdiskgrp
@@ -12,6 +12,11 @@ description:
Additionally the status of the MDisksGrp is checked. On every other status
than {online} the check results in {CRIT} status.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
The name of the MDisksGrp
diff --git a/checkman/ibm_svc_node b/checkman/ibm_svc_node
index a77c841..95d4a43 100644
--- a/checkman/ibm_svc_node
+++ b/checkman/ibm_svc_node
@@ -11,6 +11,11 @@ description:
{offline}) the check returns {CRIT}. And in all other cases - that
means if at least one node is {online} - the check returns {WARN}.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
The name of the IO Group.
diff --git a/checkman/ibm_svc_nodestats.cache b/checkman/ibm_svc_nodestats.cache
index cabb6b0..29c70a1 100644
--- a/checkman/ibm_svc_nodestats.cache
+++ b/checkman/ibm_svc_nodestats.cache
@@ -9,6 +9,11 @@ description:
The check does report only and returns always {OK}.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
The name of the node.
diff --git a/checkman/ibm_svc_nodestats.cpu_util b/checkman/ibm_svc_nodestats.cpu_util
index 8f87447..1ce05b7 100644
--- a/checkman/ibm_svc_nodestats.cpu_util
+++ b/checkman/ibm_svc_nodestats.cpu_util
@@ -9,6 +9,11 @@ description:
The check returns {WARN} or {CRIT} if the utilization in percent is higher
then given levels and {OK} otherwise.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
The name of the node.
diff --git a/checkman/ibm_svc_nodestats.diskio b/checkman/ibm_svc_nodestats.diskio
index 523c197..aa018fd 100644
--- a/checkman/ibm_svc_nodestats.diskio
+++ b/checkman/ibm_svc_nodestats.diskio
@@ -9,6 +9,11 @@ description:
The check is only for reporting and returns always {OK}.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
"Drives", "MDisks" or "VDisks" plus the name of the node.
diff --git a/checkman/ibm_svc_system b/checkman/ibm_svc_system
index 7b6d62b..f5a626a 100644
--- a/checkman/ibm_svc_system
+++ b/checkman/ibm_svc_system
@@ -7,6 +7,11 @@ description:
Reports name, location, code_level and email_contact_location of an
IBM SVC / V7000 device. The check always returns {OK}.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
inventory:
Creates exactly one check for every IBM SVC / V7000 named
IBM SVC Info.
diff --git a/checkman/ibm_svc_systemstats.cache b/checkman/ibm_svc_systemstats.cache
index a5357d6..256377f 100644
--- a/checkman/ibm_svc_systemstats.cache
+++ b/checkman/ibm_svc_systemstats.cache
@@ -9,6 +9,11 @@ description:
The check does report only and returns always {OK}.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
inventory:
Creates one check per IBM SVC / V7000 device.
diff --git a/checkman/ibm_svc_systemstats.cpu_util b/checkman/ibm_svc_systemstats.cpu_util
index 3a572fd..14ef781 100644
--- a/checkman/ibm_svc_systemstats.cpu_util
+++ b/checkman/ibm_svc_systemstats.cpu_util
@@ -9,6 +9,11 @@ description:
The check returns {WARN} or {CRIT} if the utilization in percent is higher
then given levels and {OK} otherwise.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
inventory:
Creates one check IBM SVC / V7000 device.
diff --git a/checkman/ibm_svc_systemstats.diskio b/checkman/ibm_svc_systemstats.diskio
index 4f7c9c6..1722294 100644
--- a/checkman/ibm_svc_systemstats.diskio
+++ b/checkman/ibm_svc_systemstats.diskio
@@ -9,6 +9,11 @@ description:
The check is only for reporting and returns always {OK}.
+ Please note: You need the Special Agent agent_ibmsvc to retrieve the monitoring
+ data from the device. Your monitoring user must be able to SSH to the device
+ with SSH Key Authentification. Please exchange SSH key. The Special Agent itself
+ can be configured by WATO.
+
item:
"Drives", "MDisks" or "VDisks"
Module: check_mk
Branch: master
Commit: 0227914547c5b138c714f41cd797a1b586472487
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0227914547c5b1…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Apr 4 13:48:48 2014 +0200
ibm_svc_eventlog: New Check for Messages in Event log of IBM SVC / V7000 devices
---
.werks/801 | 8 ++++
ChangeLog | 1 +
agents/special/agent_ibmsvc | 15 +++++---
checkman/ibm_svc_eventlog | 13 +++++++
checks/ibm_svc_eventlog | 61 +++++++++++++++++++++++++++++++
web/plugins/wato/datasource_programs.py | 1 +
6 files changed, 94 insertions(+), 5 deletions(-)
diff --git a/.werks/801 b/.werks/801
new file mode 100644
index 0000000..9c7742b
--- /dev/null
+++ b/.werks/801
@@ -0,0 +1,8 @@
+Title: ibm_svc_eventlog: New Check for Messages in Event log of IBM SVC / V7000 devices
+Level: 1
+Component: checks
+Version: 1.2.5i3
+Date: 1396612089
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index a7cb5fd..8f71b33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
NOTE: Please refer to the migration notes!
* 0799 ibm_svc_systemstats.cpu_util: New check for CPU Utilization of an IBM SVC / V7000 device in total
* 0800 ibm_svc_nodestats.cache, ibm_svc_systemstats.cache: New checks for Cache Usage of IBM SVC / V7000 devices
+ * 0801 ibm_svc_eventlog: New Check for Messages in Event log of IBM SVC / V7000 devices
* 0777 FIX: special agent emcvnx: did not work with security file authentication...
Multisite:
diff --git a/agents/special/agent_ibmsvc b/agents/special/agent_ibmsvc
index 3598a1e..4a61a04 100755
--- a/agents/special/agent_ibmsvc
+++ b/agents/special/agent_ibmsvc
@@ -61,10 +61,10 @@ OPTIONS:
-i MODULES, --modules MODULES Modules to query. This is a comma separated list of
which may contain the keywords "lshost", "lslicense",
"lsmdisk", "lsmdiskgrp", "lsnode", "lsnodestats",
- "lssystem", "lssystemstats" or "all" to define which
- information should be queried from the device. You can
- define to use only view of them to optimize performance.
- The default is "all".
+ "lssystem", "lssystemstats", "lseventlog" or "all" to
+ define which information should be queried from the
+ device. You can define to use only view of them to
+ optimize performance. The default is "all".
""")
@@ -100,6 +100,7 @@ command_options = {
"lsnodestats" : {"section_header" : "ibm_svc_nodestats", "active" : False},
"lssystem" : {"section_header" : "ibm_svc_system", "active" : False},
"lssystemstats" : {"section_header" : "ibm_svc_systemstats", "active" : False},
+ "lseventlog" : {"section_header" : "ibm_svc_eventlog", "active" : False},
}
for o,a in opts:
@@ -156,7 +157,11 @@ cmd = "ssh -o ConnectTimeout=%s %s %s@%s '" % (opt_timeout, opt_any_hostkey, use
for module in command_options.keys():
if command_options[module]["active"] == True:
- cmd += "echo \<\<\<%s:sep\(58\)\>\>\>; %s -nohdr -delim :;" % (command_options[module]["section_header"], module)
+ cmd += "echo \<\<\<%s:sep\(58\)\>\>\>;" % command_options[module]["section_header"]
+ if module == "lseventlog":
+ cmd += "lseventlog -expired no -fixed no -monitoring no -order severity -message no -delim : -nohdr;"
+ else:
+ cmd += "%s -nohdr -delim :;" % module
cmd += "'"
diff --git a/checkman/ibm_svc_eventlog b/checkman/ibm_svc_eventlog
new file mode 100644
index 0000000..5b6fc24
--- /dev/null
+++ b/checkman/ibm_svc_eventlog
@@ -0,0 +1,13 @@
+title: IBM SVC / V7000: Messages in Event log
+agents: ibm_svc
+catalog: hw/storagehw/ibm
+license: GPL
+distribution: check_mk
+description:
+ Checks the event log of IBM SVC / V7000 devices for messsages not expired
+ and not yet fixed. Returns {WARN} if there is at least one and {OK} if
+ there is none.
+
+inventory:
+ Creates exactly one check on every IBM SVC / V7000 device named
+ IBM SVC Eventlog.
diff --git a/checks/ibm_svc_eventlog b/checks/ibm_svc_eventlog
new file mode 100644
index 0000000..7d6f893
--- /dev/null
+++ b/checks/ibm_svc_eventlog
@@ -0,0 +1,61 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2013 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+# Example output from agent:
+# <<<ibm_svc_eventlog:sep(58)>>>
+# 588:120404112526:mdiskgrp:6:md07_sas10k::alert:no:989001::Managed Disk Group space warning
+# 589:120404112851:mdiskgrp:7:md08_nlsas7k_1t::alert:no:989001::Managed Disk Group space warning
+# 590:120404112931:mdiskgrp:8:md09_nlsas7k_1t::alert:no:989001::Managed Disk Group space warning
+# 591:120404113001:mdiskgrp:9:md10_nlsas7k_1t::alert:no:989001::Managed Disk Group space warning
+# 592:120404113026:mdiskgrp:10:md11_nlsas7k_1t::alert:no:989001::Managed Disk Group space warning
+# 593:120404113111:mdiskgrp:11:md12_nlsas7k_1t::alert:no:989001::Managed Disk Group space warning
+# 1690:130801070656:drive:59:::alert:no:981020::Managed Disk error count warning threshold met
+# 2058:131030112416:drive:42:::alert:no:981020::Managed Disk error count warning threshold met
+
+def inventory_ibm_svc_eventlog(info):
+ return [ (None, None) ]
+
+def check_ibm_svc_eventlog(item, _no_params, info):
+ messagecount = 0
+ last_err = ""
+
+ for sequence_number, last_timestamp, object_type, object_id, object_name, copy_id, status, fixed, event_id, error_code, description in info:
+ messagecount += 1
+ last_err = description
+
+ if messagecount > 0:
+ return 1, "%d messages not expired and not yet fixed found in event log, last was: %s" % \
+ (messagecount, last_err)
+
+ return 0, "No messages not expired and not yet fixed found in event log"
+
+check_info["ibm_svc_eventlog"] = {
+ "check_function" : check_ibm_svc_eventlog,
+ "inventory_function" : inventory_ibm_svc_eventlog,
+ "service_description" : "IBM SVC Eventlog",
+ "has_perfdata" : False,
+}
+
diff --git a/web/plugins/wato/datasource_programs.py b/web/plugins/wato/datasource_programs.py
index 90f9077..990095a 100644
--- a/web/plugins/wato/datasource_programs.py
+++ b/web/plugins/wato/datasource_programs.py
@@ -273,6 +273,7 @@ register_rule(group,
( "lsnodestats", _("Node Stats") ),
( "lssystem", _("System Info") ),
( "lssystemstats", _("System Stats") ),
+ ( "lseventlog", _("Event Log") ),
],
default_value = [ "lshost", "lslicense", "lsmdisk", "lsmdiskgrp", "lsnode",
"lsnodestats", "lssystem", "lssystemstats", ],