Module: check_mk
Branch: master
Commit: 74506e53e5b91d06cfbd6ff866576198eff591c2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74506e53e5b91d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 3 07:55:05 2016 +0200
3459 FIX Bulk edit: Fixed mixup of attributes during consecutive bulk edits
---
.werks/3459 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 11 +++++++++++
3 files changed, 22 insertions(+)
diff --git a/.werks/3459 b/.werks/3459
new file mode 100644
index 0000000..c6d7aec
--- /dev/null
+++ b/.werks/3459
@@ -0,0 +1,10 @@
+Title: Bulk edit: Fixed mixup of attributes during consecutive bulk edits
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1462254841
+
+
diff --git a/ChangeLog b/ChangeLog
index aaaf86c..0c8bf8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -338,6 +338,7 @@
* 3451 FIX: Fixed exception in host list when no local site configured
* 3457 FIX: Bulk edit: Prevent browser auto completion of stored credentials
* 3458 FIX: Bulk edit: Fixed broken unchecking of attributes after complain
+ * 3459 FIX: Bulk edit: Fixed mixup of attributes during consecutive bulk edits
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 0c15682..3759d12 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3625,6 +3625,16 @@ def mode_bulk_edit(phase):
host_names = get_hostnames_from_checkboxes()
hosts = dict([(host_name, Folder.current().host(host_name)) for host_name in host_names])
+ current_host_hash = sha256(repr(hosts))
+
+ # When bulk edit has been made with some hosts, then other hosts have been selected
+ # and then another bulk edit has made, the attributes need to be reset before
+ # rendering the form. Otherwise the second edit will have the attributes of the
+ # first set.
+ host_hash = html.var("host_hash")
+ if not host_hash or host_hash != current_host_hash:
+ html.del_all_vars(prefix="attr_")
+ html.del_all_vars(prefix="bulk_change_")
html.write("<p>" + _("You have selected <b>%d</b> hosts for bulk edit. You can now change "
"host attributes for all selected hosts at once. ") % len(hosts))
@@ -3634,6 +3644,7 @@ def mode_bulk_edit(phase):
html.begin_form("edit_host", method = "POST")
html.prevent_password_auto_completion()
+ html.hidden_field("host_hash", current_host_hash)
configure_attributes(False, hosts, "bulk", parent = Folder.current())
forms.end()
html.button("_save", _("Save & Finish"))
Module: check_mk
Branch: master
Commit: 31f923b3b18214caac8a02238af239d6f3054987
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=31f923b3b18214…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon May 2 18:43:55 2016 +0200
3431 netextreme_cpu_util: new check which monitors the CPU utilization of a Extreme Networks Switch which supports the EXTREME-MIB
---
.werks/3431 | 9 +++++++
ChangeLog | 1 +
checkman/netextreme_cpu_util | 16 ++++++++++++
checks/netextreme_cpu_util | 55 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 81 insertions(+)
diff --git a/.werks/3431 b/.werks/3431
new file mode 100644
index 0000000..d61fc65
--- /dev/null
+++ b/.werks/3431
@@ -0,0 +1,9 @@
+Title: netextreme_cpu_util: new check which monitors the CPU utilization of a Extreme Networks Switch which supports the EXTREME-MIB
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1462207393
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 3c8e1d0..1a85e67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -74,6 +74,7 @@
* 3445 mssql_versions: With up-to-date agent plugin it is now writing out the used edition
* 3446 mssql_version: Outputs info about cluster state and cluster name
* 3128 mem.win: graphs now display the available memory
+ * 3431 netextreme_cpu_util: new check which monitors the CPU utilization of a Extreme Networks Switch which supports the EXTREME-MIB
* 3073 FIX: windows agent: relative paths to mrpe scripts are now treated as relative to the agent installation directory...
* 3061 FIX: mk_jolokia: Fixed debugging of the agent plugin
* 3074 FIX: windows agent: fixed incorrect values for 32-bit performance counters
diff --git a/checkman/netextreme_cpu_util b/checkman/netextreme_cpu_util
new file mode 100644
index 0000000..8f52237
--- /dev/null
+++ b/checkman/netextreme_cpu_util
@@ -0,0 +1,16 @@
+title: Extreme Networks Switch: CPU utilization
+agents: snmp
+catalog: hw/other
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the CPU utilization of a Extreme Networks Switch
+ which supports the EXTREME-MIB.
+
+ Default levels are 80, 90 percent. These are configurable.
+
+perfdata:
+ The CPU utilization.
+
+inventory:
+ One service is created.
diff --git a/checks/netextreme_cpu_util b/checks/netextreme_cpu_util
new file mode 100644
index 0000000..1655acc
--- /dev/null
+++ b/checks/netextreme_cpu_util
@@ -0,0 +1,55 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2016 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-
+# tails. 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.
+
+
+# .1.3.6.1.4.1.1916.1.32.1.2.0 59 --> EXTREME-SOFTWARE-MONITOR-MIB::extremeCpuMonitorTotalUtilization.0$
+
+
+# As in some other checks
+netextreme_cpu_util_default_levels = (80.0, 90.0)
+
+
+def inventory_netextreme_cpu_util(info):
+ if info:
+ return [ (None, "netextreme_cpu_util_default_levels") ]
+
+
+def check_netextreme_cpu_util(_no_item, params, info):
+ return check_cpu_util(float(info[0][0]), params)
+
+
+check_info['netextreme_cpu_util'] = {
+ 'inventory_function' : inventory_netextreme_cpu_util,
+ 'check_function' : check_netextreme_cpu_util,
+ 'service_description' : 'CPU utilization',
+ 'snmp_info' : (".1.3.6.1.4.1.1916.1.32.1.2", [
+ "0", # EXTREME-SOFTWARE-MONITOR-MIB::extremeCpuMonitorTotalUtilization
+ ]),
+ 'snmp_scan_function' : lambda oid: oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.1916.2"),
+ 'has_perfdata' : True,
+ 'includes' : [ 'cpu_util.include' ],
+ 'group' : 'cpu_utilization',
+}
Module: check_mk
Branch: master
Commit: 2c6c876e553382e27104e979cb98729eead044f6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2c6c876e553382…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 2 16:59:59 2016 +0200
3466 Logwatch pages now work in distributed environment without HTTH reverse proxy
The web pages for viewing and acknowledging files from logwatch checks now no longer
need a HTTP reverse proxy setup but simply work. The use Livestatus - just like the
other status data. This means that in the Enterprise Edition you can now drop the
reverse proxying totally. In the Raw Edition you still need it for the performance
graphs from PNP4Nagios.
In a manual setup you need to tell the Livestatus Nagios-Module where it finds
the logwatch files with the option <tt>mk_logwatch_path=.....</tt>. Specify the
absolute path to the base directory where Check_MK stores the logwatch files.
This path always ends with <tt>/logwatch</tt>.
Note: You need to update Livestatus / Check_MK on all remote sites. If you just
update the central site then the logwatch GUI will stop working.
---
.werks/3466 | 21 ++
ChangeLog | 1 +
web/htdocs/livestatus.py | 2 +-
web/htdocs/logwatch.py | 566 ++++++++++++++++++++++++------------------
web/htdocs/wato.py | 4 +-
web/plugins/icons/builtin.py | 10 +-
6 files changed, 355 insertions(+), 249 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=2c6c876e55…