Module: check_mk
Branch: master
Commit: 7402e1c176c615075f6ec30e9bf63428ded5b50a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7402e1c176c615…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 27 10:08:33 2012 +0200
FIX: comments_with_info in service table was always empty
---
ChangeLog | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2152120..ba688a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
* FIX: It is now possible to create clusters in empty folders
* FIX: Fixed problem with complaining empty ListOf() valuespecs
+ Livestatus
+ * FIX: comments_with_info in service table was always empty
+
1.2.1i1:
Core:
* Allow to add options to rules. Currently the options "disabled" and
Module: check_mk
Branch: master
Commit: f5ce1496be521312404e6814af711117dcb7885f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f5ce1496be5213…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Wed Sep 26 18:10:09 2012 +0200
Fix typo
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2fdc5f1..dba1728 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3319,7 +3319,7 @@ def mode_changelog(phase):
table += '</table>'
c = wato_confirm(_("Confirm activating foreign changes"),
'<img class=foreignchanges src="images/icon_foreign_changes.png">' +
- _("There are some changes made by you collegues that you will "
+ _("There are some changes made by your collegues that you will "
"activate if you proceed:") + table +
_("Do you really want to proceed?"))
if c == False:
Module: check_mk
Branch: master
Commit: cfccb0ecf035425fedd039f80692886858a54bef
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cfccb0ecf03542…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Sep 26 15:32:13 2012 +0200
Added new setting to logwatch to change service output
---
checkman/logwatch | 4 ++++
checks/logwatch | 9 ++++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/checkman/logwatch b/checkman/logwatch
index 066da97..da4d90c 100644
--- a/checkman/logwatch
+++ b/checkman/logwatch
@@ -86,3 +86,7 @@ logwatch_dir (string): Directory where log messages are
For each host a subdirectory is created. The name of the
files therein are the names of the logfiles with slashes
replaced by backslashes.
+
+logwatch_service_output (string): Change the output of the service to ony
+ print stats and not the last error message. Default is {default}, use {small} if
+ you only want to have the stats.
diff --git a/checks/logwatch b/checks/logwatch
index c98b65d..cf798b2 100644
--- a/checks/logwatch
+++ b/checks/logwatch
@@ -30,9 +30,10 @@ logwatch_dir = var_dir + '/logwatch'
logwatch_patterns = { }
logwatch_rules = []
logwatch_max_filesize = 500000 # do not save more than 500k of message (configurable)
+logwatch_service_output = "default"
# Variables embedded in precompiled checks
-check_config_variables += [ "logwatch_dir", "logwatch_max_filesize" ]
+check_config_variables += [ "logwatch_dir", "logwatch_max_filesize", "logwatch_service_output" ]
def inventory_logwatch(info):
inventory = []
@@ -348,9 +349,11 @@ def check_logwatch(item, params, info):
count_txt = []
for level, num in state_counts.iteritems():
count_txt.append('%d %s' % (num, logwatch_level_name(level)))
-
- return (worst, state + " - %s messages (Last worst: \"%s\")" %
+ if logwatch_service_output == 'default':
+ return (worst, state + " - %s messages (Last worst: \"%s\")" %
(', '.join(count_txt), last_worst_line))
+ else:
+ return (worst, state + " - %s messages" % ', '.join(count_txt))
check_info['logwatch'] = {