Module: check_mk
Branch: master
Commit: 5e3f6fded6b647e6ee4f6ff52e0a9e03f8be2335
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e3f6fded6b647…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Sep 16 16:50:50 2015 +0200
fixed invalid line in sophos man pages
---
checkman/sophos_messages | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checkman/sophos_messages b/checkman/sophos_messages
index f2d84f7..e3607ab 100644
--- a/checkman/sophos_messages
+++ b/checkman/sophos_messages
@@ -7,7 +7,7 @@ description:
This check monitors the rate of the inbound and outbound messages
of the Sophos Email Appliance which supports the SOPHOS-MIB.
-item
+item:
The name of the type of messages.
perfdata:
Module: check_mk
Branch: master
Commit: d4bbc647957e689ac08343f2bfcaa5a077888b84
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d4bbc647957e68…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Sep 16 16:49:34 2015 +0200
added man pages for sophos checks
---
checkman/sophos | 27 +++++++++++++++++++++++++++
checkman/sophos_messages | 17 +++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/checkman/sophos b/checkman/sophos
new file mode 100644
index 0000000..353319f
--- /dev/null
+++ b/checkman/sophos
@@ -0,0 +1,27 @@
+title: Sophos Email Appliance: Module States
+agents: snmp
+catalog: hw/other
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the states of the following modules
+ of the Sophos Email Appliance which supports the SOPHOS-MIB:
+ - the memory consumption,
+ - memory,
+ - RAID,
+ - CPU,
+ - left, right and summary power supply,
+ - left, right and summary fan,
+ - system temperature
+ - system voltage usage
+
+ The device sends the states by itself and will be handled as follows:
+ - OK -> OK
+ - warn -> WARN
+ - error -> CRIT
+
+item:
+ The module name.
+
+inventory:
+ One service per module is created.
diff --git a/checkman/sophos_messages b/checkman/sophos_messages
new file mode 100644
index 0000000..f2d84f7
--- /dev/null
+++ b/checkman/sophos_messages
@@ -0,0 +1,17 @@
+title: Sophos Email Appliance: Inbound and outbound messages
+agents: snmp
+catalog: hw/other
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the rate of the inbound and outbound messages
+ of the Sophos Email Appliance which supports the SOPHOS-MIB.
+
+item
+ The name of the type of messages.
+
+perfdata:
+ The rates of the total number and the inbound and outbound messages.
+
+inventory:
+ One service per type is created.
Module: check_mk
Branch: master
Commit: 715243e118c5e75954464a97e40f261fe345c6b2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=715243e118c5e7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Sep 16 16:37:07 2015 +0200
#2598 FIX Remove button for removing downtimes an BI aggregates because it cannot work
This button has never worked and was never intended. Currently you can set
a downtime on all services and hosts contained in a BI aggregation. But
there is no way - alas - to revert this and remove all those downtimes. The
reason is that for creating a downtime you just need the name of a host and
service. For removing one you need its ID. And that is not available in BI.
---
.werks/2598 | 14 ++++++++++++++
ChangeLog | 1 +
web/plugins/views/bi.py | 6 +++---
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/.werks/2598 b/.werks/2598
new file mode 100644
index 0000000..3be3b0c
--- /dev/null
+++ b/.werks/2598
@@ -0,0 +1,14 @@
+Title: Remove button for removing downtimes an BI aggregates because it cannot work
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i3
+Date: 1442414132
+
+This button has never worked and was never intended. Currently you can set
+a downtime on all services and hosts contained in a BI aggregation. But
+there is no way - alas - to revert this and remove all those downtimes. The
+reason is that for creating a downtime you just need the name of a host and
+service. For removing one you need its ID. And that is not available in BI.
diff --git a/ChangeLog b/ChangeLog
index 66b10b5..b050fb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -232,6 +232,7 @@
* 2580 FIX: Remove bogus ;0 in comment of problem acknowledgements...
* 2604 FIX: Dashboards: Improved error handling in case of broken dashlet
* 2597 FIX: Fix settings downtimes on BI aggregates in distributed environment...
+ * 2598 FIX: Remove button for removing downtimes an BI aggregates because it cannot work...
WATO:
* 2365 Removed old deprecated notification global options for plain emails...
diff --git a/web/plugins/views/bi.py b/web/plugins/views/bi.py
index 3fd48c3..0288419 100644
--- a/web/plugins/views/bi.py
+++ b/web/plugins/views/bi.py
@@ -45,7 +45,7 @@ multisite_datasources["bi_aggregations"] = {
multisite_datasources["bi_host_aggregations"] = {
"title" : _("BI Aggregations affected by one host"),
"table" : bi.host_table,
- "infos" : [ "host", "aggr" ],
+ "infos" : [ "aggr", "host" ],
"keys" : [],
"idkeys" : [ 'aggr_name' ],
}
@@ -55,7 +55,7 @@ multisite_datasources["bi_host_aggregations"] = {
multisite_datasources["bi_hostname_aggregations"] = {
"title" : _("BI Hostname Aggregations"),
"table" : bi.hostname_table,
- "infos" : [ "host", "aggr" ],
+ "infos" : [ "aggr", "host" ],
"keys" : [],
"idkeys" : [ 'aggr_name' ],
}
@@ -64,7 +64,7 @@ multisite_datasources["bi_hostname_aggregations"] = {
multisite_datasources["bi_hostnamebygroup_aggregations"] = {
"title" : _("BI Aggregations for Hosts by Hostgroups"),
"table" : bi.hostname_by_group_table,
- "infos" : [ "host", "aggr", "hostgroup" ],
+ "infos" : [ "aggr", "host" "hostgroup" ],
"keys" : [],
"idkeys" : [ 'aggr_name' ],
}
Module: check_mk
Branch: master
Commit: 896d0ed16124f589e83204b383f72aec1b3325ac
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=896d0ed16124f5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Sep 16 16:14:58 2015 +0200
#2597 FIX Fix settings downtimes on BI aggregates in distributed environment
This fixes the exception about a missing key <tt>site</tt>.
---
.werks/2597 | 10 ++++++++++
ChangeLog | 3 ++-
web/htdocs/views.py | 6 +++---
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/.werks/2597 b/.werks/2597
new file mode 100644
index 0000000..95e4cb6
--- /dev/null
+++ b/.werks/2597
@@ -0,0 +1,10 @@
+Title: Fix settings downtimes on BI aggregates in distributed environment
+Level: 2
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i3
+Date: 1442412858
+
+This fixes the exception about a missing key <tt>site</tt>.
diff --git a/ChangeLog b/ChangeLog
index eada469..66b10b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -82,8 +82,8 @@
NOTE: Please refer to the migration notes!
* 2590 new check raritan_px2_sensors: monitors the temperature, humidity, air flow and pressure sensors connected to a Raritan PX2 Device
* 2591 new check raritan_emx_sensors: monitors contact, temperature, humidity, air flow and pressure sensors connected to a Raritan EMX Device
- * 2625 kernel.util and winperf_processor.util checks now support an optional graph showing utilization of individual cores...
* 2592 new checks netextreme_fan, netextreme_psu, netextreme_psu_in, netextreme_psu_out, netextreme_temp for Extreme Networks Switches...
+ * 2625 kernel.util and winperf_processor.util checks now support an optional graph showing utilization of individual cores...
* 2315 FIX: windows agent: BOM replacement, fixed incorrect byte offset...
* 2316 FIX: windows agent: fix garbled output of cached agent plugins...
* 2358 FIX: check_mk_agent.solaris: more correct computation of zfs used space...
@@ -231,6 +231,7 @@
* 2556 FIX: Availability: Fixed exception when trying to group BI aggregations by host/service-groups
* 2580 FIX: Remove bogus ;0 in comment of problem acknowledgements...
* 2604 FIX: Dashboards: Improved error handling in case of broken dashlet
+ * 2597 FIX: Fix settings downtimes on BI aggregates in distributed environment...
WATO:
* 2365 Removed old deprecated notification global options for plain emails...
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index a0a10bb..bfdcac0 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1960,19 +1960,19 @@ def do_actions(view, what, action_rows, backurl):
for nr, row in enumerate(action_rows):
core_commands, title, executor = core_command(what, row, nr, len(action_rows))
for command_entry in core_commands:
- if (row["site"], command_entry) not in already_executed:
+ site = row.get("site") # site is missing for BI rows (aggregations can spawn several sites)
+ if (site, command_entry) not in already_executed:
# Some command functions return the information about the site per-command (e.g. for BI)
if type(command_entry) == tuple:
site, command = command_entry
else:
command = command_entry
- site = row["site"]
if type(command) == unicode:
command = command.encode("utf-8")
executor(command, site)
- already_executed.add((row["site"], command_entry))
+ already_executed.add((site, command_entry))
count += 1
message = None
Module: check_mk
Branch: master
Commit: 1ab801b344d4a44b10f4aac4213be3294341f7ec
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ab801b344d4a4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 16 16:09:07 2015 +0200
htmllib: made json import more portable
---
web/htdocs/htmllib.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 635b70e..add2ca0 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -45,7 +45,12 @@
# input to str or unicode must happen as early as possible,
# directly when reading from file or URL.
-import time, os, pwd, urllib, random, re, __builtin__, json
+import time, os, pwd, urllib, random, re, __builtin__
+
+try:
+ import simplejson as json
+except ImportError:
+ import json
from lib import *
# Python 2.3 does not have 'set' in normal namespace.