Module: check_mk
Branch: master
Commit: 99d6fb648b8d5ea759cbaf14537a1105dfcf52ce
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=99d6fb648b8d5e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 18 14:47:54 2013 +0100
FIX check_ftp: cleanup configuration via WATO, remove Hostname field
The <tt>check_ftp</tt> active check does not longer need nor allow to
specify a host name. The host name is always present: the host the check is
mapped onto. Also the specification of an alternative host name would not
be consistent with any of the other networking checks.
If you need an FTP check on a specific host then please add that host to
the monitoring. Exceptions can alsway be done via <tt>custom_checks</tt>.
---
.werks/399 | 16 ++++++++++++++++
ChangeLog | 1 +
checks/check_ftp | 9 +++++++--
web/plugins/wato/active_checks.py | 15 +++++----------
4 files changed, 29 insertions(+), 12 deletions(-)
diff --git a/.werks/399 b/.werks/399
new file mode 100644
index 0000000..f2c11d9
--- /dev/null
+++ b/.werks/399
@@ -0,0 +1,16 @@
+Title: check_ftp: cleanup configuration via WATO, remove Hostname field
+Level: 2
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387374334
+Targetversion: future
+
+The <tt>check_ftp</tt> active check does not longer need nor allow to
+specify a host name. The host name is always present: the host the check is
+mapped onto. Also the specification of an alternative host name would not
+be consistent with any of the other networking checks.
+
+If you need an FTP check on a specific host then please add that host to
+the monitoring. Exceptions can alsway be done via <tt>custom_checks</tt>.
diff --git a/ChangeLog b/ChangeLog
index 9758651..f56a379 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -66,6 +66,7 @@
* 0387 FIX: df*: Negative filesystem space levels get a more clear text in check output...
* 0351 FIX: local: Catch invalid state codes and map to 3 (UNKNOWN)...
* 0397 FIX: mrpe: tolerate performance variable names with spaces...
+ * 0399 FIX: check_ftp: cleanup configuration via WATO, remove Hostname field...
Multisite:
* 0371 Added log class filter to hostsvcevents view
diff --git a/checks/check_ftp b/checks/check_ftp
index 7200786..99cb288 100644
--- a/checks/check_ftp
+++ b/checks/check_ftp
@@ -25,7 +25,12 @@
# Boston, MA 02110-1301 USA.
def check_ftp_arguments(params):
- host, settings = params
+ if type(params) == tuple:
+ host, settings = params
+ else:
+ host = "$HOSTNAME$"
+ settings = params
+
args = ' -H %s' % quote_shell_string(host)
if "response_time" in settings:
@@ -60,7 +65,7 @@ def check_ftp_arguments(params):
active_check_info['ftp'] = {
"command_line" : '$USER1$/check_ftp $ARG1$',
"argument_function" : check_ftp_arguments,
- "service_description" : lambda args: "FTP %s" % args[0],
+ "service_description" : lambda args: type(args) == tuple and ("FTP %s" % args[0]) or "FTP",
"has_perfdata" : True,
}
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index 7285211..4372fbd 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -94,14 +94,8 @@ register_rule(group,
register_rule(group,
"active_checks:ftp",
- Tuple(
- title = _("Check FTP Services"),
- elements = [
- TextAscii ( title = _("Hostname"), allow_empty = False,
- help = _("The hostname of the FTP server you want to check. "
- "It is possible to use $HOSTNAME$.")
- ),
- Dictionary(
+ Transform(
+ Dictionary(
elements = [
( "response_time",
Tuple(
@@ -161,8 +155,9 @@ register_rule(group,
default_value = 30)
),
]),
- ]
- )
+ forth = lambda x: type(x) == tuple and x[1] or x,
+ title = _("Check FTP Service"),
+ )
)
Module: check_mk
Branch: master
Commit: b3052b14b585705902fb15997e05394e8f33ba93
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b3052b14b58570…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 18 14:47:25 2013 +0100
Updated bug entries #0894
---
.bugs/894 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.bugs/894 b/.bugs/894
index ec9bede..6ea4a5a 100644
--- a/.bugs/894
+++ b/.bugs/894
@@ -1,9 +1,13 @@
Title: never read automation_secret.mk from Multisite
Component: multisite
-State: open
+Class: nastiness
+State: wontfix
Date: 2013-06-20 16:12:17
Targetversion: future
-Class: nastiness
That file should be "write only" from the point of view of Multisite
and only be read by external skripts.
+
+2013-12-18 14:47:04: changed state open -> wontfix
+We need to use the single files to prevent loading the whole user-db during regular
+page processing. This saves a lot of time.
Module: check_mk
Branch: master
Commit: 931a4ee501146ef8ff55eb98934532f8fe7f2e59
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=931a4ee501146e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 18 14:44:04 2013 +0100
Cleanup a few texts in WATO rules
---
web/plugins/wato/check_parameters.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 6f6bee9..af20c22 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1577,11 +1577,14 @@ filesystem_elements = [
]
)
),
+ # Beware: this is a nasty hack that helps us to detect new-style paramters.
+ # Something hat has todo with float/int conversion and has not been documented
+ # by the one who implemented this.
( "flex_levels",
FixedValue(
None,
totext = "",
- title = _("Hidden identifier key for flexible level usage")
+ title = "",
)),
( "magic",
Float(
@@ -2054,7 +2057,7 @@ register_check_parameters(
( "heartbeat_ok",
MonitoringState(
title = _("Heartbeat OK"),
- help = _(" Guest operating system is responding normally."),
+ help = _("Guest operating system is responding normally."),
default_value = 0,
)
),
Module: check_mk
Branch: master
Commit: baa5b885ae158f693a7b245962f550c71f44e7a6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=baa5b885ae158f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 18 13:39:54 2013 +0100
Added an icon selector to the view editor
Each view can have a small icon which is used, for example, in
context buttons linking to these views. The icons had to be
configured by putting the icon name to a text field. This was
not user friendly. This change adds an icon chooser to the
view editor.
---
.bugs/706 | 7 ++-
.werks/390 | 14 ++++++
ChangeLog | 1 +
web/htdocs/check_mk.css | 30 ++++++++++++
web/htdocs/images/icon_empty.png | Bin 0 -> 204 bytes
web/htdocs/js/checkmk.js | 50 +++++++++++++++++++
web/htdocs/valuespec.py | 100 ++++++++++++++++++++++++++++++++++++++
web/htdocs/views.py | 33 ++++++-------
web/htdocs/wato.css | 22 +--------
web/htdocs/wato.py | 2 +-
10 files changed, 219 insertions(+), 40 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=baa5b885ae…
Module: check_mk
Branch: master
Commit: 6bbb1c78956b1c526c524a2b6ef136dafa005f8b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6bbb1c78956b1c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 18 13:29:42 2013 +0100
Updated bug entries #0948
---
.bugs/948 | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/948 b/.bugs/948
index 7c99e1a..dd1b07e 100644
--- a/.bugs/948
+++ b/.bugs/948
@@ -1,9 +1,9 @@
Title: auth.serials not synchronized between sites
Component: multisite
-State: open
+Class: nastiness
+State: closed
Date: 2013-07-12 15:52:33
Targetversion: future
-Class: nastiness
In a distributed setup a password change on one site is
not being distributed to the others. Also the file
@@ -12,3 +12,6 @@ change the user cannot use his cookie for the authentication
on remote sites anymore.
Solution: unclear. Currently no good idea.
+
+2013-12-18 13:29:40: changed state open -> closed
+Will be done soon upon a customer request.