Module: check_mk
Branch: master
Commit: b566b32c54dc864a9828f69dac8bd7dd74b6d84d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b566b32c54dc86…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Nov 12 17:24:52 2018 +0100
6635 FIX printer_alerts: Fix handling for Sleep state
Some printers report states not defined in the MIB. A
reasonably common case appears to be the printer going
to sleep, which should be treated as OK instead
of UNKNOWN.
Change-Id: I40d7f84557db9f386b4fd66c9818ceb772fe6ca7
---
.werks/6635 | 14 ++++++++++++++
checks/printer_alerts | 1 +
2 files changed, 15 insertions(+)
diff --git a/.werks/6635 b/.werks/6635
new file mode 100644
index 0000000..0be137a
--- /dev/null
+++ b/.werks/6635
@@ -0,0 +1,14 @@
+Title: printer_alerts: Fix handling for Sleep state
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1542039777
+
+Some printers report states not defined in the MIB. A
+reasonably common case appears to be the printer going
+to sleep, which should be treated as OK instead
+of UNKNOWN.
diff --git a/checks/printer_alerts b/checks/printer_alerts
index b9988b6..5062a2e 100644
--- a/checks/printer_alerts
+++ b/checks/printer_alerts
@@ -175,6 +175,7 @@ printer_code_map = {
printer_alerts_text_map = {
'Energiesparen' : 0,
+ 'Sleep' : 0,
}
def inventory_printer_alerts(info):
Module: check_mk
Branch: master
Commit: 6eb322101d95deb45396e3c81a556e5dd940f08c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6eb322101d95de…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 12 12:32:01 2018 +0100
6860 FIX Fixed random backup issues: "Connection reset by peer"
The "mkbackup" and "omd backup" commands could fail while backing up a site when
the rrdcached process was reloaded, restarted or stopped during the backup. This
could also be triggered by an "Activate changes" action in the GUI.
The backup was then aborted with an error like this: "Failed to perform backup: [Errno 104] Connection reset by peer".
This issue did not affect backups performed for not running sites.
FEED-2982
FEED-3045
CMK-943
Change-Id: I020700f4a9d347a14a79f5440ac2024d8b45e042
---
.werks/6860 | 17 +++++++++++++++++
omd/packages/omd/omd | 7 +++++--
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/.werks/6860 b/.werks/6860
new file mode 100644
index 0000000..f17812e
--- /dev/null
+++ b/.werks/6860
@@ -0,0 +1,17 @@
+Title: Fixed random backup issues: "Connection reset by peer"
+Level: 1
+Component: omd
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1542022142
+
+The "mkbackup" and "omd backup" commands could fail while backing up a site when
+the rrdcached process was reloaded, restarted or stopped during the backup. This
+could also be triggered by an "Activate changes" action in the GUI.
+
+The backup was then aborted with an error like this: "Failed to perform backup: [Errno 104] Connection reset by peer".
+
+This issue did not affect backups performed for not running sites.
diff --git a/omd/packages/omd/omd b/omd/packages/omd/omd
index 81cfccb..21926d0 100644
--- a/omd/packages/omd/omd
+++ b/omd/packages/omd/omd
@@ -3631,10 +3631,13 @@ class BackupTarFile(tarfile.TarFile):
while not answer.endswith("\n"):
answer += self._sock.recv(1024)
except socket.error, e:
- if e.errno == 32: # Broken pipe
+ # ECONNRESET: Broken pipe
+ # EPIPE: Connection reset by peer
+ # Happens, for example, when the rrdcached is reloaded/restarted during backup
+ if e.errno in (errno.ECONNRESET, errno.EPIPE):
self._sock = None
if opt_verbose:
- sys.stdout.write("skipping rrdcached command (broken pipe)\n")
+ sys.stdout.write("skipping rrdcached command (%s)\n" % e)
return
else:
raise
Module: check_mk
Branch: master
Commit: af31c62683074d57d1693403015a85acd5039329
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af31c62683074d…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Nov 12 17:01:14 2018 +0100
Fixed typo in manpage
Change-Id: I6282a758c1e8798c7895d722a99c772480ef6208
---
checkman/esx_vsphere_hostsystem.maintenance | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checkman/esx_vsphere_hostsystem.maintenance b/checkman/esx_vsphere_hostsystem.maintenance
index 26976ec..8cefa05 100644
--- a/checkman/esx_vsphere_hostsystem.maintenance
+++ b/checkman/esx_vsphere_hostsystem.maintenance
@@ -7,7 +7,7 @@ description:
This check queries the maintenance State of an ESX host
system via the vsphere agent and returns:
- {OK} if the ESX host has the same sate since the last service detection
+ {OK} if the ESX host has the same state since the last service detection.
{CRIT} if the state has changed.