Module: check_mk
Branch: master
Commit: af444ca845b2e49788dc2fae8c34f64327efc960
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af444ca845b2e4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 12 16:40:37 2014 +0100
#1764 FIX mk_sap: Fixed exception when saving status file
---
.werks/1764 | 10 ++++++++++
ChangeLog | 1 +
agents/plugins/mk_sap | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1764 b/.werks/1764
new file mode 100644
index 0000000..c38f0ff
--- /dev/null
+++ b/.werks/1764
@@ -0,0 +1,10 @@
+Title: mk_sap: Fixed exception when saving status file
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418398819
+
+
diff --git a/ChangeLog b/ChangeLog
index bc69ab6..3d59140 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
* 1763 FIX: diskstat: Fixed error in config example of manpage
* 1755 FIX: cisco_vpn_tunnel: fix exception in case tunnel is not OK
* 1756 FIX: agent_ibmsvc: do not abort execution if one of the sections fail
+ * 1764 FIX: mk_sap: Fixed exception when saving status file
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/agents/plugins/mk_sap b/agents/plugins/mk_sap
index e780c29..7303dac 100755
--- a/agents/plugins/mk_sap
+++ b/agents/plugins/mk_sap
@@ -487,7 +487,7 @@ try:
# Only write the state file once per run. And only when it has been changed
if state_file_changed:
new_file = STATE_FILE + '.new'
- fd = os.open(new_file, os.O_WRONLY | os.o_CREAT)
+ fd = os.open(new_file, os.O_WRONLY | os.O_CREAT)
fcntl.flock(fd, fcntl.LOCK_EX)
os.write(fd, repr(states))
os.close(fd)