Module: check_mk
Branch: master
Commit: 0fa76f10a677239a8190b5080fe933ecbc29c39e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0fa76f10a67723…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jun 5 11:52:29 2015 +0200
#2340 FIX Email validation: Top level domains can now have a maximum length of 24 characters
---
.werks/2340 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/valuespec.py | 5 ++++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/2340 b/.werks/2340
new file mode 100644
index 0000000..b5b2fa6
--- /dev/null
+++ b/.werks/2340
@@ -0,0 +1,9 @@
+Title: Email validation: Top level domains can now have a maximum length of 24 characters
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.7i2
+Date: 1433497930
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 7839e46..fedb555 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@
* 2335 FIX: Fixed PNP default template for active checks with arguments...
* 2337 FIX: Fixed problem with long hanging pnp graph rendering calls
* 2338 FIX: Logging internal GUI exceptions to web.log instead of apache error_log...
+ * 2340 FIX: Email validation: Top level domains can now have a maximum length of 24 characters
BI:
* 2336 FIX: BI compilation diagnostics are now logged to the generic web.log...
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 0294774..12ea130 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -512,7 +512,10 @@ class EmailAddress(TextAscii):
def __init__(self, **kwargs):
kwargs.setdefault("size", 40)
TextAscii.__init__(self, **kwargs)
- self._regex = re.compile('^[A-Z0-9._%+-]+(a)(localhost|[A-Z0-9.-]+\.[A-Z]{2,4})$', re.I)
+ # The "new" top level domains are very unlimited in length. Theoretically they can be
+ # up to 63 chars long. But currently the longest is 24 characters. Check this out with:
+ # wget -qO - http://data.iana.org/TLD/tlds-alpha-by-domain.txt | tail -n+2 | wc -L
+ self._regex = re.compile('^[A-Z0-9._%+-]+(a)(localhost|[A-Z0-9.-]+\.[A-Z]{2,24})$', re.I)
self._make_clickable = kwargs.get("make_clickable", False)
def value_to_text(self, value):
Module: check_mk
Branch: master
Commit: 0598d438351ca9f2538808ebb45baa0b32c96f1e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0598d438351ca9…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Jun 3 17:08:56 2015 +0200
raritan_pdu_ocprot: Cleanup after merge of subchecks
---
checkman/raritan_pdu_ocprot | 9 +++++++--
checkman/raritan_pdu_ocprot.current | 17 -----------------
web/plugins/metrics/check_mk.py | 2 +-
3 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/checkman/raritan_pdu_ocprot b/checkman/raritan_pdu_ocprot
index 46fad38..bc89d6d 100644
--- a/checkman/raritan_pdu_ocprot
+++ b/checkman/raritan_pdu_ocprot
@@ -1,4 +1,4 @@
-title: Raritan PX-2000 family PDU overcurrent protector status
+title: Raritan PX-2000 family PDU overcurrent protector
agents: snmp
catalog: hw/other
license: GPL
@@ -6,10 +6,15 @@ distribution: check_mk
description:
This check monitors the electrical current of overcurrent protectors
of the Raritan PX-2000 family of intelligent rack power distribution
- units (iPDUs).
+ units (iPDUs). As well as the current, the status as reported by the
+ device is taken into account, whereby the status open is interpreted
+ as CRIT, closed as OK, and unavailable as UNKNOWN.
item:
The ID of the Overcurrent protector, eg. C1.
+perfdata:
+ One value: The current current in Ampère.
+
inventory:
One check per overcurrent protector is created.
diff --git a/checkman/raritan_pdu_ocprot.current b/checkman/raritan_pdu_ocprot.current
deleted file mode 100644
index 07e3d83..0000000
--- a/checkman/raritan_pdu_ocprot.current
+++ /dev/null
@@ -1,17 +0,0 @@
-title: Raritan PX-2000 family PDU overcurrent protector status
-agents: snmp
-catalog: hw/other
-license: GPL
-distribution: check_mk
-description:
- This check monitors the current of overcurrent protectors of the Raritan PX-2000
- family of intelligent rack power distribution units (iPDUs).
-
-item:
- The ID of the Overcurrent protector, eg. C1.
-
-perfdata:
- One value: The current current in Ampère.
-
-inventory:
- One check per overcurrent protector is created.
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index 6d6aaa8..3190c77 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -1412,7 +1412,7 @@ check_metrics["check_mk-apc_rackpdu_power"] = { "amperage" :
check_metrics["check_mk-apc_ats_output"] = { "volt" : { "name" : "voltage" }, "watt" : { "name" : "power"}, "ampere": { "name": "current"}, "load_perc" : { "name": "output_load" }}
check_metrics["check_mk-raritan_pdu_inlet"] = {}
check_metrics["check_mk-raritan_pdu_inlet_summary"] = {}
-check_metrics["check_mk-raritan_pdu_ocprot.current"] = {}
+check_metrics["check_mk-raritan_pdu_ocprot"] = {}
check_metrics["check_mk-ups_socomec_outphase"] = {}
check_metrics["check_mk-ucs_bladecenter_psu.switch_power"] = {}
check_metrics["check_mk-bluenet_meter"] = {}
Module: check_mk
Branch: master
Commit: 346cfe80e24fb3e9937f97612722f9cbd9a36a96
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=346cfe80e24fb3…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Jun 3 17:04:15 2015 +0200
Updated werk description
---
.werks/2216 | 4 ++--
ChangeLog | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.werks/2216 b/.werks/2216
index 25b8ca3..78dd6e9 100644
--- a/.werks/2216
+++ b/.werks/2216
@@ -1,4 +1,4 @@
-Title: raritan_pdu_ocprot, raritan_pdu_ocprot.current: Two new checks to monitor overcurrent protectors of Raritan PDUs
+Title: raritan_pdu_ocprot: New check to monitor overcurrent protectors of Raritan PDUs
Level: 1
Component: checks
Compatible: compat
@@ -6,4 +6,4 @@ Version: 1.2.7i2
Date: 1433340363
Class: feature
-raritan_pdu_ocprot monitors the status of overcurrent protectors, raritan_pdu_ocprot.current the electrical current.
+raritan_pdu_ocprot monitors the status of overcurrent protectors and the electrical current.
diff --git a/ChangeLog b/ChangeLog
index 521e7d4..c56bae8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,7 @@
Checks & Agents:
* 2117 postfix_mailq: agent and check now retrieve and monitor active queue data as well
* 2325 oracle_tablespaces: correctly handle case where check runs in clustered mode...
- * 2216 raritan_pdu_ocprot, raritan_pdu_ocprot.current: Two new checks to monitor overcurrent protectors of Raritan PDUs...
+ * 2216 raritan_pdu_ocprot: New check to monitor overcurrent protectors of Raritan PDUs...
* 2323 FIX: df: Fix new graphs for all filesystem checks in case of existing inode information
* 2305 FIX: agent_vsphere, esx_vsphere_sensors: now able to handle sensor names with semicolon...
Module: check_mk
Branch: master
Commit: 4c344dbf8f48b2cdcadb1356739389791039cc6b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4c344dbf8f48b2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jun 3 16:51:51 2015 +0200
Fixed permission error in .f12 file of web (min.js)
---
web/.f12 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/.f12 b/web/.f12
index 9b4e557..0acbb42 100644
--- a/web/.f12
+++ b/web/.f12
@@ -15,7 +15,7 @@ fi
# Per Default wird geguckt, ob die *_min.js-Dateien älter sind, als
# die Original-Dateien. Wenn ja, dann werden sie neu erstellt.
-make DESTDIR=/omd/sites/$SITE/share/check_mk -C .. minify-js
+sudo make DESTDIR=/omd/sites/$SITE/share/check_mk -C .. minify-js
# Wenn man ohne die min-Dateien entwickeln will, kann man das hier
# auskommentieren. Dies räumt dann auch die Dateien weg, die
# schon in der original-Installation vom OMD vorhanden waren.
Module: check_mk
Branch: master
Commit: b1794776e130ab024fa32e1c3630556c41b4b8b4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1794776e130ab…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jun 3 16:31:49 2015 +0200
#2339 FIX Discovery service: Fixed handling of agent / snmp communication errors
When a host could not be contacted via agent or did not receive an SNMP response,
this resulted in a situation where the check was shown as UNKNOWN and broken check
with the hint to send a bug report the us.
This handling has been changed to reporting a WARNING state together with the related
error message as output. The "crashed check" link is not displayed for this case anymore.
---
.werks/2339 | 15 +++++++++++++++
ChangeLog | 3 +++
modules/discovery.py | 7 +++++++
3 files changed, 25 insertions(+)
diff --git a/.werks/2339 b/.werks/2339
new file mode 100644
index 0000000..a0a245d
--- /dev/null
+++ b/.werks/2339
@@ -0,0 +1,15 @@
+Title: Discovery service: Fixed handling of agent / snmp communication errors
+Level: 1
+Component: core
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i2
+Date: 1433341742
+
+When a host could not be contacted via agent or did not receive an SNMP response,
+this resulted in a situation where the check was shown as UNKNOWN and broken check
+with the hint to send a bug report the us.
+
+This handling has been changed to reporting a WARNING state together with the related
+error message as output. The "crashed check" link is not displayed for this case anymore.
diff --git a/ChangeLog b/ChangeLog
index 521e7d4..627fda9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.2.7i2:
+ Core & Setup:
+ * 2339 FIX: Discovery service: Fixed handling of agent / snmp communication errors...
+
Checks & Agents:
* 2117 postfix_mailq: agent and check now retrieve and monitor active queue data as well
* 2325 oracle_tablespaces: correctly handle case where check runs in clustered mode...
diff --git a/modules/discovery.py b/modules/discovery.py
index 44821e6..aac4e4d 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -162,6 +162,13 @@ def check_discovery(hostname, ipaddress=None):
else:
output = "no unchecked services found\n"
status = 0
+ except (MKSNMPError, MKAgentError), e:
+ output = "Discovery failed: %s" % e
+ # 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)
+ status = spec.get("connection", 1)
+
except SystemExit, e:
raise e
except Exception, e: