Module: check_mk
Branch: master
Commit: 372b5c1b1a8f9dfa57a74306a70d6fd6373585f0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=372b5c1b1a8f9d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 26 11:13:57 2014 +0100
#1535 Disabled services on service discovery page now link to the ruleset
---
.werks/1535 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 7 +++++++
3 files changed, 18 insertions(+)
diff --git a/.werks/1535 b/.werks/1535
new file mode 100644
index 0000000..b2501ec
--- /dev/null
+++ b/.werks/1535
@@ -0,0 +1,10 @@
+Title: Disabled services on service discovery page now link to the ruleset
+Level: 1
+Component: wato
+Class: feature
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1416996809
+
+
diff --git a/ChangeLog b/ChangeLog
index b218b6e..443a2f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -75,6 +75,7 @@
* 1489 Added iCalendar import for generating timeperiods e.g. for holidays...
* 1495 Most WATO tables can now be sorted (where useful)...
* 1504 WATO makes host tag and group information available for NagVis...
+ * 1535 Disabled services on service discovery page now link to the ruleset
* 1165 FIX: Fixed exception in service discovery of logwatch event console forwarding checks...
* 1490 FIX: Timperiod excludes can now even be configured when creating a timeperiod...
* 1491 FIX: Fixed bug in dynamic lists where removing an item was not always possible...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 5305e9d..3ccd0c1 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3292,6 +3292,13 @@ def show_service_table(host, firsttime):
("item", mk_repr(item))])
html.icon_button(url, _("Edit and analyze the check parameters of this service"), "check_parameters")
+ if state_type == "ignored":
+ url = make_link([("mode", "edit_ruleset"),
+ ("varname", "ignored_services"),
+ ("host", hostname),
+ ("item", mk_repr(descr))])
+ html.icon_button(url, _("Edit and analyze the disabled services rules"), "ignore")
+
# Permanently disable icon
if state_type in ['new', 'old']:
url = make_link([
Module: check_mk
Branch: master
Commit: 14efe0ff259d49720135a5107bc02093d4c14f36
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14efe0ff259d49…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 26 10:02:10 2014 +0100
This fixes an error where filtering a view leads into an empty view, because
the enforced site filter has the first site preselected, which is not always
the site of the data shown in the view. Now we use the optional site filter
for most views to cleanup this error.
Conflicts:
ChangeLog
web/plugins/views/builtin.py
---
.werks/1534 | 13 ++++++++
ChangeLog | 1 +
mkeventd/web/plugins/views/mkeventd.py | 4 +--
web/plugins/views/builtin.py | 52 ++++++++++++++++----------------
4 files changed, 42 insertions(+), 28 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=14efe0ff25…
Module: check_mk
Branch: master
Commit: 3d7c1f8dc4915eef6e33ee03eaaad929a7b54102
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3d7c1f8dc4915e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 25 11:58:02 2014 +0100
#1549 FIX bluecat_threads: do not inventorize this check where information is missing
This avoid UNKNOWN check results on devices where no thread information is
available.
---
.werks/1549 | 11 +++++++++++
ChangeLog | 1 +
checks/bluecat_threads | 3 ++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/1549 b/.werks/1549
new file mode 100644
index 0000000..315bf35
--- /dev/null
+++ b/.werks/1549
@@ -0,0 +1,11 @@
+Title: bluecat_threads: do not inventorize this check where information is missing
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1416913048
+
+This avoid UNKNOWN check results on devices where no thread information is
+available.
diff --git a/ChangeLog b/ChangeLog
index 229af5d..9a22256 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@
* 1449 FIX: nginx_status: agent plugin no longer honours "http(s)_proxy" env variables of root user
* 1532 FIX: mk_sap: Cleaning up old state information from sap.state file...
* 1548 FIX: bluecat_ntp: do not inventorized devices where NTP information is missing
+ * 1549 FIX: bluecat_threads: do not inventorize this check where information is missing...
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/checks/bluecat_threads b/checks/bluecat_threads
index 7b67507..49c2e32 100644
--- a/checks/bluecat_threads
+++ b/checks/bluecat_threads
@@ -28,7 +28,8 @@
threads_default_levels = (2000, 4000)
def inventory_bluecat_threads(info):
- return [(None, "threads_default_levels")]
+ if info:
+ return [(None, "threads_default_levels")]
def check_bluecat_threads(item, params, info):
nthreads = int(info[0][0])
small speedup for large Multisite pages
Message-ID: <54745ede.wW1gBWvn0xMnqWQc%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: be7a859377ccad63b8740ebbf1b2e1033f87b302
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=be7a859377ccad…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 25 11:50:03 2014 +0100
Faster implementation of attrencode, small speedup for large Multisite pages
---
web/htdocs/htmllib.py | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index c43be21..1727e0f 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -1213,19 +1213,7 @@ class html:
elif type(value) not in [str, unicode]:
value = str(value)
- new = ""
- for c in value:
- if c == '"':
- new += """
- elif c == '<':
- new += "<"
- elif c == '>':
- new += ">"
- else:
- new += c
- return new
-
-
+ return value.replace('"', """).replace("<", "<").replace(">", ">")
# This function returns a str object, never unicode!
# Beware: this code is crucial for the performance of Multisite!