Module: check_mk
Branch: master
Commit: 0fef4177d02ed971bdb4f61140ae7834bc50d3cf
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0fef4177d02ed9…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu May 31 13:17:01 2012 +0200
Updated bug entries #0729
---
.bugs/729 | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/.bugs/729 b/.bugs/729
new file mode 100644
index 0000000..a60815e
--- /dev/null
+++ b/.bugs/729
@@ -0,0 +1,8 @@
+Title: Its not no longer possible to modify views
+Component: multisite
+State: open
+Date: 2012-05-31 13:15:37
+Targetversion: 1.2.0
+Class: bug
+
+ Any view field that is not previously set, IE, any field that is currently set to “Don’t Use” can not be changed. The drop down menu is disabled….
Module: check_mk
Branch: master
Commit: 15c4bb9819d8460d48a6f7030db4229f41aebfa1
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=15c4bb9819d846…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu May 31 11:34:48 2012 +0200
Added vxvm_objstatus check
---
checks/vxvm_objstatus | 82 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 82 insertions(+), 0 deletions(-)
diff --git a/checks/vxvm_objstatus b/checks/vxvm_objstatus
new file mode 100644
index 0000000..ea39408
--- /dev/null
+++ b/checks/vxvm_objstatus
@@ -0,0 +1,82 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2012 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:
+#<<<vxvm_objstatus>>>
+#v datadg lalavol CLEAN DISABLED
+#v datadg oravol ACTIVE ENABLED
+#v datadg oravol-L01 ACTIVE ENABLED
+#v datadg oravol-L02 ACTIVE ENABLED
+#v testgroup oravol-L02 ACTIVE ENABLED
+
+def vxvm_objstatus_disks(info):
+ groups = {}
+ found_groups = []
+ for dg_type, dg_name, name, admin_state, kernel_state in info:
+ if dg_type == 'v':
+ if dg_name not in found_groups:
+ groups[dg_name] = [(name, admin_state, kernel_state)]
+ found_groups.append(dg_name)
+ else:
+ groups[dg_name].append((name, admin_state, kernel_state))
+ return groups
+
+def inventory_vxvm_objstatus(info):
+ groups = vxvm_objstatus_disks(info)
+ return [(item, groups[item]) for item in groups.keys()]
+
+def check_vxvm_objstatus(item, params, info):
+ groups = vxvm_objstatus_disks(info)
+ volumes = groups.get(item)
+ if volumes != None:
+ state = 0
+ messages = []
+ for volume, admin_state, kernel_state in volumes:
+ text = []
+ error = False
+ if admin_state != "CLEAN" and admin_state != 'ACTIVE':
+ state = 2
+ text.append("%s: Admin state is %s(!!)" % (volume, admin_state))
+ error = True
+ if kernel_state != 'ENABLED' and kernel_state != 'DISABLED':
+ state = 2
+ text.append("%s: Kernel state is %s(!!)" % (volume, kernel_state))
+ error = True
+ if error == False:
+ text = ["%s: OK" % volume]
+ messages.append(", ".join(text))
+ return(state, nagios_state_names[state] + ' - ' + ', '.join(messages))
+
+ return(2, "CRIT - Group not found")
+
+
+check_info["vxvm_objstatus"] = {
+ "check_function" : check_vxvm_objstatus,
+ "inventory_function" : inventory_vxvm_objstatus,
+ "service_description" : "VXVM objstatus %s",
+ "has_perfdata" : False,
+}
+
Module: check_mk
Branch: master
Commit: fa9c2a2582fef348f175e5606eeaf1f87f5dc249
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa9c2a2582fef3…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed May 30 17:10:23 2012 +0200
Added lnx_vmstat check
---
checks/lnx_vmstat | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/checks/lnx_vmstat b/checks/lnx_vmstat
new file mode 100644
index 0000000..2c5a7df
--- /dev/null
+++ b/checks/lnx_vmstat
@@ -0,0 +1,49 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2012 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.
+
+#<<<lnx_lvmstat>>>
+#1338389956.26
+#252 2 vgubuntu-root 66109 0 1861626 771692 310410 0 5240232 21519872 0 546740 22291608
+#252 3 vgubuntu-home 37997 0 593186 339120 130175 0 2554992 5621456 0 495464 5960576
+#252 1 vgubuntu-swap 214 0 1712 1932 21 0 168 64 0 1204 1996
+
+def linux_lnx_lvmstat_convert(info):
+ return [ ( l[2], int(l[5]), int(l[9])) for l in info[1:] ]
+
+def inventory_lnx_lvmstat(info):
+ return inventory_diskstat_generic(linux_lnx_lvmstat_convert(info))
+
+def check_lnx_lvmstat(item, params, info):
+ return check_diskstat_generic(item, params, int(info[0][0].split('.')[0]), linux_lnx_lvmstat_convert(info))
+
+check_info['lnx_lvmstat'] = {
+ "check_function" : check_lnx_lvmstat,
+ "inventory_function" : inventory_lnx_lvmstat,
+ "service_description" : "LVM IO %s",
+ "has_perfdata" : True,
+ "group" : "disk_io",
+ "includes" : [ "diskstat.include" ],
+}
Module: check_mk
Branch: master
Commit: 2ab47b19c7db5c300286011a479ee5ee1896b9ba
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ab47b19c7db5c…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed May 30 17:09:51 2012 +0200
Added vxvm_volstats check
---
.../veritas/{vxvm_volumes => vxvm_volstats} | 5 +-
checks/vxvm_volstats | 52 ++++++++++++++++++++
2 files changed, 54 insertions(+), 3 deletions(-)
diff --git a/agents/plugins/veritas/vxvm_volumes b/agents/plugins/veritas/vxvm_volstats
similarity index 87%
rename from agents/plugins/veritas/vxvm_volumes
rename to agents/plugins/veritas/vxvm_volstats
index 46c46fe..b33c060 100755
--- a/agents/plugins/veritas/vxvm_volumes
+++ b/agents/plugins/veritas/vxvm_volstats
@@ -2,15 +2,14 @@
if type vxdg > /dev/null; then
- echo '<<<vxvm_volumes>>>'
+ echo '<<<vxvm_volstats>>>'
# Get a list of the in-use disk groups.
# Deported or otherwise inactive needs no performance monitoring
DGS=$(vxdg list | grep enabled | awk '{print $1}')
if [ "X${DGS}" != "X" ]; then
for DG in $DGS ; do
- vxprint -g $DG -v -F"%dgname %name %state"
# Options: Kilobytes, per Volume
- vxstat -u k -v -g $DG | egrep -v '(OPERATIONS|TYP)' | sed "s/^vol/$DG/"
+ vxstat -u k -v -g $DG | egrep -v '(OPERATIONS|TYP)' | sed "s/^vol /$DG-/"
done
fi
fi
diff --git a/checks/vxvm_volstats b/checks/vxvm_volstats
new file mode 100644
index 0000000..f32a68f
--- /dev/null
+++ b/checks/vxvm_volstats
@@ -0,0 +1,52 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2012 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.
+
+# <<<aix_perflib_hbastat>>>
+# Convert to generic format needed for diskstat.include. Upper example
+# would look like:
+# [ ( 'sissas0', 204494394, 156524126 ), ('fcs3', 1760, 0), ... ]
+
+def convert_vxvm_volstats(info):
+ return [ ( l[0], int(l[1])*2, int(l[2])*2) for l in info[1:] ]
+
+def inventory_vxvm_volstats(info):
+ converted = convert_vxvm_volstats(info)
+ return [ (line[0], "diskstat_default_levels") for line in converted ]
+
+def check_vxvm_volstats(item, params, info):
+ converted = convert_vxvm_volstats(info)
+ return check_diskstat_generic(item, params, int(info[0][0]), converted)
+
+
+check_info['vxvm_volstats'] = {
+ "check_function" : check_vxvm_volstats,
+ "inventory_function" : inventory_vxvm_volstats,
+ "service_description" : "VXVM Stats %s",
+ "has_perfdata" : True,
+ "group" : "disk_io",
+ "includes" : [ "diskstat.include" ],
+}
+
Module: check_mk
Branch: master
Commit: c5e96f73775a5a81c7a0bdd54e021a60b1563a36
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5e96f73775a5a…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed May 30 16:10:54 2012 +0200
Updated bug entries #0616, #0728, #0727
---
.bugs/616 | 8 ++++++++
.bugs/727 | 8 ++++++++
.bugs/728 | 9 +++++++++
3 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/.bugs/616 b/.bugs/616
new file mode 100644
index 0000000..2c67fbb
--- /dev/null
+++ b/.bugs/616
@@ -0,0 +1,8 @@
+Title: Serarch for HostTags in Wato Host and Folder view
+Component: wato
+State: open
+Date: 2012-05-30 16:03:37
+Targetversion: future
+Class: feature
+
+It should be possible to filter a Host in the Wato hosts an folder view for Hosttags.
diff --git a/.bugs/727 b/.bugs/727
new file mode 100644
index 0000000..c0fabcd
--- /dev/null
+++ b/.bugs/727
@@ -0,0 +1,8 @@
+Title: Bulkedit in Wato search results
+Component: wato
+State: open
+Date: 2012-05-30 16:06:28
+Targetversion: future
+Class: feature
+
+It should be possible to make a Bluk Edit for hosts which are a result of Hostsearch in Wato
diff --git a/.bugs/728 b/.bugs/728
new file mode 100644
index 0000000..2054269
--- /dev/null
+++ b/.bugs/728
@@ -0,0 +1,9 @@
+Title: Schlechter Kontrast bei der Liste von Regeln in Wato
+Component: wato
+State: open
+Date: 2012-05-30 16:08:34
+Targetversion: 1.2.0
+Class: nastiness
+
+Der farbliche Kontrast zwischen dem schwarzen Text und dunkeln Hintergrund sorgt
+bei manchen Monitoren für schlecht lesbare Texte in der Liste von Regeln in Wato