Module: check_mk
Branch: master
Commit: f931024b551396e088280d842a993ab1d0a21c9f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f931024b551396…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Feb 24 17:38:35 2019 +0100
Improve discovery error message "host does not exist"
The service discovery may fail for several reasons, when performed
for remote sites. For example when a host has just been created and
could not be synchronized to the remote site before starting the
discovery. The errpr message for this situation has been improved.
Change-Id: Ife9be378af6026fc1bd2b2b532f407109ca8a6a8
---
cmk/gui/wato/pages/services.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/wato/pages/services.py b/cmk/gui/wato/pages/services.py
index bd0efac..e625cec 100644
--- a/cmk/gui/wato/pages/services.py
+++ b/cmk/gui/wato/pages/services.py
@@ -334,7 +334,11 @@ class AutomationServiceDiscoveryJob(AutomationCommand):
raise MKGeneralException(_("Host is missing"))
host = watolib.Host.host(host_name)
if host is None:
- raise MKGeneralException(_("Host does not exist"))
+ raise MKGeneralException(
+ _("Host %s does not exist on remote site %s. This "
+ "may be caused by a failed configuration synchronization. Have a
look at "
+ "the <a
href=\"wato.py?folder=&mode=changelog\">activate changes page</a>
"
+ "for further information."))
host.need_permission("read")
options = json.loads(html.get_ascii_input("options"))