Module: check_mk
Branch: master
Commit: 7a235072638f4d7ba07e6e6030baa5f4edb7aeff
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a235072638f4d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 27 14:38:30 2015 +0200
Fixed help text
---
web/htdocs/wato.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 1eb2e49..2813db0 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7581,9 +7581,9 @@ def vs_ldap_connection(new):
("debug_log", Checkbox(
title = _("Connection Diagnostics"),
label = _("Activate logging of LDAP transactions"),
- help = _("If this option is enabled, Check_MK will create a log file in "
- "<tt>var/log/ldap.log</tt> within your site in OMD environments. "
- "You should enable this option only for debugging."),
+ help = _("If this option is enabled, Check_MK will log LDAP related debug messages to <tt>%s</tt>. "
+ "You should enable this option only for debugging.") % \
+ site_neutral_path(defaults.log_dir + "/web.log"),
default_value = False
)),
]
Module: check_mk
Branch: master
Commit: 649f8821b62b80617787175128650aac32529787
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=649f8821b62b80…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jul 28 09:38:22 2015 +0200
esx_vsphere_vm: nicer output texts for VMware Tools status
---
checks/esx_vsphere_vm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/esx_vsphere_vm b/checks/esx_vsphere_vm
index 7f8e249..4833ac2 100644
--- a/checks/esx_vsphere_vm
+++ b/checks/esx_vsphere_vm
@@ -238,10 +238,10 @@ def check_esx_vsphere_vm_guest_tools(_no_item, params, info):
vm_status = data['guest.toolsVersionStatus'][0]
guest_tools_map = {
- "guestToolsCurrent": (0, "VMware Tools is installed, and the version is current"),
- "guestToolsNeedUpgrade": (1, "VMware Tools is installed, but the version is not current"),
- "guestToolsNotInstalled": (2, "VMware Tools has never been installed"),
- "guestToolsUnmanaged": (1, "VMware Tools is installed, but it is not managed by VMWare")
+ "guestToolsCurrent": (0, "VMware Tools are installed and the version is current"),
+ "guestToolsNeedUpgrade": (1, "VMware Tools are installed, but the version is not current"),
+ "guestToolsNotInstalled": (2, "VMware Tools are not installed"),
+ "guestToolsUnmanaged": (1, "VMware Tools are installed, but are not managed by VMWare")
}
state, info = guest_tools_map.get(vm_status, (3, "Unknown status for VMware Tools"))
Module: check_mk
Branch: master
Commit: 914ea59685c2592eda6d01c81258c35b503f8785
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=914ea59685c259…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jul 27 17:19:52 2015 +0200
ibm_svc_mdisk: after firmware update the output of the command 'lsmdisk -nohdr -delim :' in the special agent 'agent_ibmsvc' increased from 11/12 to 14
---
checks/ibm_svc_mdisk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/ibm_svc_mdisk b/checks/ibm_svc_mdisk
index d8939c8..720e00a 100644
--- a/checks/ibm_svc_mdisk
+++ b/checks/ibm_svc_mdisk
@@ -50,12 +50,12 @@ factory_settings['ibm_svc_mdisk_default_levels'] = {
def inventory_ibm_svc_mdisk(info):
for line in info:
- if len(line) in (11, 12):
+ if len(line) > 10:
yield line[1], {}
def check_ibm_svc_mdisk(item, params, info):
for line in info:
- if len(line) in (11, 12) and line[1] == item:
+ if len(line) > 10 and line[1] == item:
mdisk_status = line[2]
mdisk_mode = line[3]
Module: check_mk
Branch: master
Commit: 38fb4741bd6bf9396c47f13134b5e449be0f6113
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=38fb4741bd6bf9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jul 27 14:58:40 2015 +0200
#2487 Remove dangerous <i>Factory Reset</i> button
We removed the button <i>Factory Reset</i> completely from WATO. This button
is dangerous. Also it does anyway just a reset of WATO - not of other data
in the site like NagVis maps etc. For a real reset better remove and recreate
the site with:
C+:
RP:omd stop mysite
RP:omd rm mysite
RP:omd create mysite
C-:
---
.werks/2487 | 18 ++++++++++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 48 ++++--------------------------------------------
3 files changed, 23 insertions(+), 44 deletions(-)
diff --git a/.werks/2487 b/.werks/2487
new file mode 100644
index 0000000..84c4e2b
--- /dev/null
+++ b/.werks/2487
@@ -0,0 +1,18 @@
+Title: Remove dangerous <i>Factory Reset</i> button
+Level: 2
+Component: wato
+Compatible: compat
+Version: 1.2.7i3
+Date: 1438001809
+Class: feature
+
+We removed the button <i>Factory Reset</i> completely from WATO. This button
+is dangerous. Also it does anyway just a reset of WATO - not of other data
+in the site like NagVis maps etc. For a real reset better remove and recreate
+the site with:
+
+C+:
+RP:omd stop mysite
+RP:omd rm mysite
+RP:omd create mysite
+C-:
diff --git a/ChangeLog b/ChangeLog
index d3ec1b7..29c311d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -111,6 +111,7 @@
* 2463 Hiding not permitted actions from service discovery page when only permitted on host...
* 2479 Allowing dots in host-, service- and contact groups now
* 2486 Remove special handling for non-distributed-setups in WATO...
+ * 2487 Remove dangerous <i>Factory Reset</i> button...
* 2344 FIX: Improved validation of selected rules when editing BI aggregations...
* 2346 FIX: Notifications: Fixed garbled page when switching on/off bulks/backlog/user rules
* 2372 FIX: Avoid freezing WATO during bulk discovery if hosts do not respond in a timely manner
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d8c9380..a5689e1 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -199,10 +199,9 @@ def page_handler():
lock_exclusive()
try:
- # Make information about current folder and hosts available
- # To be able to perform a "factory reset" or a snapshot restore
- # even with a broken config ignore exceptions in this function
- # when running in "snapshot" mode
+ # Make information about current folder and hosts available To be able
+ # to restore a snapshot even with a broken config ignore exceptions
+ # in this function when running in "snapshot" mode
prepare_folder_info()
except:
if current_mode == 'snapshot':
@@ -6797,8 +6796,6 @@ def mode_snapshot(phase):
elif phase == "buttons":
home_button()
changelog_button()
- html.context_button(_("Factory Reset"),
- make_action_link([("mode", "snapshot"),("_factory_reset","Yes")]), "factoryreset")
return
# Cleanup incompletely processed snapshot upload
@@ -6983,18 +6980,6 @@ def mode_snapshot(phase):
elif c == False: # not yet confirmed
return ""
- elif html.has_var("_factory_reset"):
- c = wato_confirm(_("Confirm factory reset"),
- _("If you proceed now, all hosts, folders, rules and other configurations "
- "done with WATO will be deleted! Please consider making a snapshot before "
- "you do this. Snapshots will not be deleted. Also the password of the currently "
- "logged in user (%s) will be kept.<br><br>"
- "Do you really want to delete all or your configuration data?") % config.user_id)
- if c:
- factory_reset()
- return None, _("Resetted WATO, wiped all configuration.")
- elif c == False: # not yet confirmed
- return ""
return None
else:
@@ -7100,30 +7085,6 @@ def create_snapshot(data = {}):
return snapshot_name
-def factory_reset():
- # Darn. What makes things complicated here is that we need to conserve htpasswd,
- # at least the account of the currently logged in user.
- users = userdb.load_users(lock = True)
- for id in users.keys():
- if id != config.user_id:
- del users[id]
-
- to_delete = [ path for c,n,path
- in backup_paths
- if n != "auth.secret" ] + [ log_dir ]
- for path in to_delete:
- if os.path.isdir(path):
- shutil.rmtree(path)
- elif os.path.exists(path):
- os.remove(path)
-
- make_nagios_directory(multisite_dir)
- make_nagios_directory(root_dir)
-
- userdb.save_users(users) # make sure, omdadmin is present after this
- log_pending(SYNCRESTART, None, "factory-reset", _("Complete reset to factory settings."))
-
-
#.
# .--Value-Editor--------------------------------------------------------.
# | __ __ _ _____ _ _ _ |
@@ -19892,8 +19853,7 @@ def load_plugins():
_("Backup & Restore"),
_("Access to the module <i>Backup & Restore</i>. Please note: a user with "
"write access to this module "
- "can make arbitrary changes to the configuration by restoring uploaded snapshots "
- "and even do a complete factory reset!"),
+ "can make arbitrary changes to the configuration by restoring uploaded snapshots."),
[ "admin", ])
config.declare_permission("wato.pattern_editor",