Module: check_mk
Branch: master
Commit: 50636f6776e12cb20de11721ac40a9e08f86a70c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=50636f6776e12c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 16 12:35:46 2011 +0100
Make wato_max_snapshots configurable via WATO
---
web/plugins/wato/check_mk_configuration.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/web/plugins/wato/check_mk_configuration.py
b/web/plugins/wato/check_mk_configuration.py
index 04fc6a3..076e3d8 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -141,6 +141,15 @@ register_configvar(group,
default_value = True),
domain = "multisite")
+register_configvar(group,
+ "wato_max_snapshots",
+ Integer(title = _("Number of configuration snapshots to keep"),
+ help = _("Whenever you successfully activate changes a snapshot of the
configuration "
+ "will be created. You can also create snapshots manually. WATO
will delete old "
+ "snapshots when the maximum number of snapshots is
reached."),
+ minvalue = 1,
+ default_value = 50),
+ domain = "multisite")
group = _("Operation mode of Check_MK")