Module: check_mk
Branch: master
Commit: 6da9e09cb017c91774fbf8ca6896ead409c6f443
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6da9e09cb017c9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 8 09:54:09 2017 +0100
4329 FIX mkbackup: Fixed "Operation not permitted" error when backing up to some NFS shares
Change-Id: I08dc61bbf96f531762b37d28f6d354cdf2237110
---
.werks/4329 | 9 +++++++++
ChangeLog | 1 +
bin/mkbackup | 8 ++++++++
3 files changed, 18 insertions(+)
diff --git a/.werks/4329 b/.werks/4329
new file mode 100644
index 0000000..116e48b
--- /dev/null
+++ b/.werks/4329
@@ -0,0 +1,9 @@
+Title: mkbackup: Fixed "Operation not permitted" error when backing up to some NFS shares
+Level: 1
+Component: core
+Compatible: compat
+Version: 1.4.0i4
+Date: 1486544016
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 94b3736..41aae63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* 4286 SNMP MIBs of the Event Console can now be packed using MKPs...
* 4269 FIX: Verifying unexpected keys in check_info while loading checks...
* 4281 FIX: Fixed piggyback hosts with spaces in names leading to crashes...
+ * 4329 FIX: mkbackup: Fixed "Operation not permitted" error when backing up to some NFS shares
Checks & Agents:
* 4104 veeam_tapejobs: New check to monitor Veeam tape jobs
diff --git a/bin/mkbackup b/bin/mkbackup
index 421a7cb..8ce264b 100755
--- a/bin/mkbackup
+++ b/bin/mkbackup
@@ -201,6 +201,10 @@ def set_permissions(path, uid, gid, mode):
if e.errno == 13:
pass # On CIFS mounts where "uid=0,forceuid,gid=1000,forcegid" mount options
# are set, this is not possible. So skip over.
+ elif e.errno == 1:
+ pass # On NFS mounts where "" mount options are set, we get an
+ # "Operation not permitted" error when trying to change e.g.
+ # the group permission.
else:
raise
@@ -210,6 +214,10 @@ def set_permissions(path, uid, gid, mode):
if e.errno == 13:
pass # On CIFS mounts where "uid=0,forceuid,gid=1000,forcegid" mount options
# are set, this is not possible. So skip over.
+ elif e.errno == 1:
+ pass # On NFS mounts where "" mount options are set, we get an
+ # "Operation not permitted" error when trying to change e.g.
+ # the group permission.
else:
raise
Module: check_mk
Branch: master
Commit: 2f0f46a2d05838a482c84e97e8afddd62d6681f4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2f0f46a2d05838…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Feb 7 15:44:29 2017 +0100
4023 WATO Web API: Now able to add/edit/delete htpasswd users
New functions for the WATO Web-API have been introduced.
You can now manage htpasswd users with automation calls.
The following (not very fleshed out) examples provide a quick overview.
A more elaborate version will be written later on in our official manual.
<pre>
Common url prefix:
http://localhost/heute/check_mk/webapi.py?_username=automation&_secret=1122...
To get a list of all supported attributes, you'll need to have a look in the actual config files
~/etc/check_mk/conf.d/wato/contacts.mk
~/etc/check_mk/multisite.d/wato/users.mk
Add users:
curl {common_prefix}&action=add_users -d 'request={"users": {"klaus": {"alias": "mr. klaus", "password": "1234", "contactgroups": ["all"]}}}'
Edit users:
curl {common_prefix}&action=edit_users -d 'request={"users": {"klaus": {"set_attributes": {"alias": "mr. santa"}, "unset_attributes": ["contactgroups"]}}}'
Delete users:
curl {common_prefix}&action=delete_users -d 'request={"users": ["klaus", "guest12", "guest2332"]}'
</pre>
Change-Id: Iebbfb0f42dd4d4563662e586ef607104c2477e4b
---
.werks/4023 | 32 ++++++++++++++++++++++++++++++++
ChangeLog | 1 +
2 files changed, 33 insertions(+)
diff --git a/.werks/4023 b/.werks/4023
new file mode 100644
index 0000000..a9c6aa0
--- /dev/null
+++ b/.werks/4023
@@ -0,0 +1,32 @@
+Title: WATO Web API: Now able to add/edit/delete htpasswd users
+Level: 2
+Component: wato
+Compatible: compat
+Version: 1.4.0i4
+Date: 1486477736
+Class: feature
+
+
+New functions for the WATO Web-API have been introduced.
+You can now manage htpasswd users with automation calls.
+
+The following (not very fleshed out) examples provide a quick overview.
+A more elaborate version will be written later on in our official manual.
+
+<pre>
+Common url prefix:
+http://localhost/heute/check_mk/webapi.py?_username=automation&_secret=1122...
+
+To get a list of all supported attributes, you'll need to have a look in the actual config files
+~/etc/check_mk/conf.d/wato/contacts.mk
+~/etc/check_mk/multisite.d/wato/users.mk
+
+Add users:
+curl {common_prefix}&action=add_users -d 'request={"users": {"klaus": {"alias": "mr. klaus", "password": "1234", "contactgroups": ["all"]}}}'
+
+Edit users:
+curl {common_prefix}&action=edit_users -d 'request={"users": {"klaus": {"set_attributes": {"alias": "mr. santa"}, "unset_attributes": ["contactgroups"]}}}'
+
+Delete users:
+curl {common_prefix}&action=delete_users -d 'request={"users": ["klaus", "guest12", "guest2332"]}'
+</pre>
diff --git a/ChangeLog b/ChangeLog
index bd8c0ab..5b8fd13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -127,6 +127,7 @@
* 4319 Reworked the service discovery dialog...
* 4320 Distributed: Master site has now also site specific global settings...
* 4022 Removed no longer supported (hidden) WATO feature: wato_hidden_users
+ * 4023 WATO Web API: Now able to add/edit/delete htpasswd users...
* 4003 FIX: esx_vsphere_objects: fixed check parameters display bug during WATO service discovery
* 4146 FIX: Fixed broken "Global settings" when having the Event Console disabled via "omd config"
* 4218 FIX: Disabling replication with a site did not clear the changes for this site (1.4.0i3 regression)