Module: check_mk
Branch: master
Commit: eb504eee987f216f0583405f66c05f0a91ac4253
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eb504eee987f21…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Oct 29 09:51:12 2014 +0100
#1428 Web-API: now able to add cluster hosts
Its quite easy to accomplish. On your add host telegram simply add
the new key <tt>{ ".nodes" = ["nodename1",
"nodename2"] }</tt>.
Please note that the existance of the nodes is not verified.
So you might get an invalid host configuration and being unable
to activate the changes.
---
.werks/1428 | 14 ++++++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/1428 b/.werks/1428
new file mode 100644
index 0000000..f49c6c2
--- /dev/null
+++ b/.werks/1428
@@ -0,0 +1,14 @@
+Title: Web-API: now able to add cluster hosts
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.5i6
+Date: 1414572424
+Class: feature
+
+Its quite easy to accomplish. On your add host telegram simply add
+the new key <tt>{ ".nodes" = ["nodename1",
"nodename2"] }</tt>.
+
+Please note that the existance of the nodes is not verified.
+So you might get an invalid host configuration and being unable
+to activate the changes.
diff --git a/ChangeLog b/ChangeLog
index c99ad78..e6f674c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -157,6 +157,7 @@
* 1404 Make title/help of custom user attributes localizable...
* 1159 Remote BI Aggregations can now be configured to be checked as single
services...
* 1163 Service discovery: Added direct link to check parameter ruleset of
services...
+ * 1428 Web-API: now able to add cluster hosts...
* 1064 FIX: Fixed rare issue with WATO communication in distributed setups (different
OS versions)...
* 1089 FIX: Snapshot restore: fixed exception during exception handling......
* 1091 FIX: logwatch patterns: allow unicode text in pattern comment
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 18dfd15..338a40f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17134,7 +17134,7 @@ class API:
def __get_valid_api_host_attributes(self, attributes):
result = {}
- host_attribute_names = map(lambda (x, y): x.name(), host_attributes) +
["inventory_failed"]
+ host_attribute_names = map(lambda (x, y): x.name(), host_attributes) +
["inventory_failed", ".nodes"]
for key, value in attributes.items():
if key in host_attribute_names: