Module: check_mk
Branch: master
Commit: 47a27e6959146af4889089632aa4987db423cdc7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=47a27e6959146a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 14 00:54:26 2013 +0200
Updated bug entries #0931
---
.bugs/931 | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/931 b/.bugs/931
index 169eb1d..dca5666 100644
--- a/.bugs/931
+++ b/.bugs/931
@@ -1,9 +1,9 @@
Title: Cluster requires same agent type as cluster node
Component: core
-State: open
+Class: bug
+State: done
Date: 2013-06-19 09:46:28
Targetversion: future
-Class: bug
If the agent type attribute of a cluster and its notes differs
the check_mk agent will fail
@@ -11,3 +11,6 @@ the check_mk agent will fail
This is caused by the various is_tcp_host is_snmp_host precompiled functions
which return fixed values. The nodes receive the value of the cluster -
thus leading to the checks downfall.
+
+2013-10-14 00:54:23: changed state open -> done
+Should work now.
Module: check_mk
Branch: master
Commit: c405b74dcdabe292f8909b76b7fdd4257254fe05
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c405b74dcdabe2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 14 00:52:31 2013 +0200
FIX: avoid exception when only one node of a cluster has services
---
ChangeLog | 1 +
modules/check_mk_base.py | 11 ++++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 595cf04..77b52ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
1.2.3i5:
Core:
* FIX: inventory check now honors settings for exit code
+ * FIX: avoid exception when only one node of a cluster has services
Multisite:
* Speed-O-Meter: now measure only service checks. Host checks
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index d0da123..55a7046 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -278,14 +278,15 @@ def get_host_info(hostname, ipaddress, checkname):
is_snmp_error = False
for node in nodes:
# If an error with the agent occurs, we still can (and must)
- # try the other node.
+ # try the other nodes.
try:
ipaddress = lookup_ipaddress(node)
new_info = get_realhost_info(node, ipaddress, checkname, cluster_max_cachefile_age)
- if add_nodeinfo:
- new_info = [ [node] + line for line in new_info ]
- info += new_info
- at_least_one_without_exception = True
+ if new_info != None:
+ if add_nodeinfo:
+ new_info = [ [node] + line for line in new_info ]
+ info += new_info
+ at_least_one_without_exception = True
except MKSkipCheck:
at_least_one_without_exception = True
except MKAgentError, e:
Module: check_mk
Branch: master
Commit: d3df5b7acaa82ee701920783ec7d132a3006ec9b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d3df5b7acaa82e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 14 00:34:45 2013 +0200
FIX: inventory check now honors settings for exit code
---
.bugs/895 | 7 +++++--
ChangeLog | 3 +++
modules/check_mk.py | 9 +++++++--
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/.bugs/895 b/.bugs/895
index 413cd30..5e78514 100644
--- a/.bugs/895
+++ b/.bugs/895
@@ -1,10 +1,13 @@
Title: Inventory check should honor exit code settings
Component: core
-State: open
+Class: bug
+State: done
Date: 2013-06-21 11:58:34
Targetversion: future
-Class: bug
If you use the feature that the Check_MK exit code is also OK
when the host is down, that should also apply for the inventory
check.
+
+2013-10-14 00:34:40: changed state open -> done
+Fixed.
diff --git a/ChangeLog b/ChangeLog
index caa919c..595cf04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.2.3i5:
+ Core:
+ * FIX: inventory check now honors settings for exit code
+
Multisite:
* Speed-O-Meter: now measure only service checks. Host checks
are omitted, since they do not really matter and make the
diff --git a/modules/check_mk.py b/modules/check_mk.py
index f3c4c98..397face 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2742,8 +2742,13 @@ def check_inventory(hostname):
except Exception, e:
if opt_debug:
raise
- sys.stdout.write("UNKNOWN - %s\n" % (e,))
- sys.exit(3)
+ # Honor rule settings for "Status of the Check_MK service". In case of
+ # a problem we assume a connection error here.
+ spec = exit_code_spec(hostname)
+ what = isinstance(e, MKAgentError) and "connection" or "exception"
+ status = spec.get(what, 3)
+ sys.stdout.write("%s - %s\n" % (nagios_state_names[status], e))
+ sys.exit(status)
def service_ignored(hostname, checktype, service_description):
Module: check_mk
Branch: master
Commit: d3adc7b30a3914e54ce6ac6b0001ea90cdd23647
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d3adc7b30a3914…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Oct 12 21:44:54 2013 +0200
D-WATO: site specific global settings!
This e.g. allows to disable LDAP on remote sites while it
is active in the master site
---
ChangeLog | 5 +
doc/drafts/LIESMICH.site_spezifische_konfig | 23 +++
web/htdocs/wato.css | 11 +-
web/htdocs/wato.py | 254 +++++++++++++++++++++------
4 files changed, 241 insertions(+), 52 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=d3adc7b30a…
Module: check_mk
Branch: master
Commit: 6e59457c1fe5d33ee1d2fe654d3cb7650ad7c4f0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6e59457c1fe5d3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Oct 12 21:46:07 2013 +0200
Added internal docu
---
doc/drafts/LIESMICH.dwato_sitespezifische_snapshots | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/doc/drafts/LIESMICH.dwato_sitespezifische_snapshots b/doc/drafts/LIESMICH.dwato_sitespezifische_snapshots
new file mode 100644
index 0000000..e47d7a3
--- /dev/null
+++ b/doc/drafts/LIESMICH.dwato_sitespezifische_snapshots
@@ -0,0 +1,17 @@
+Wir brauchen beim D-WATO pro Site einen eigenen Sync-Snaphot, denn
+
+1. Wir wollen in Zukunft nicht mehr alle Hosts and alle Sites verteilen
+2. Wir wollen Site-spezifische globale Einstellungen verteilen
+
+Deswegen werden die Sync-Snapshots jetzt generell Site-spezifisch
+erzeugt.
+
+- create_sync_snapshot() bekommt eine Site-ID
+- diese ist Teil des Snapshot-Namens
+- der Snapshot wird immer kurz vor dem Sync erstellt
+
+Im Snapshot ist ein Subtarball sitespecific.tar, der
+eine sitespecific.mk enthält. Darin ist ein repr() der
+Site-Spezifischen globalen Variablen. Dieser wird beim
+Empfangen des Snapshots eingearbeitet in den bestehenden
+Einstellungen.