Module: check_mk
Branch: master
Commit: 959b62f8c072b438f867b42eca544aba38de2ef7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=959b62f8c072b4…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed May 11 09:00:16 2016 +0200
mssql_datafiles: now has its own rule, instead of using the same rule as
mssql_transactionlogs
---
checks/mssql_datafiles | 2 +-
web/plugins/wato/check_parameters.py | 28 +++++++++++++++++++++++-----
2 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/checks/mssql_datafiles b/checks/mssql_datafiles
index 686fcdf..6cb1c5b 100644
--- a/checks/mssql_datafiles
+++ b/checks/mssql_datafiles
@@ -38,7 +38,7 @@ check_info['mssql_datafiles'] = {
'check_function' : check_mssql_datafiles,
'inventory_function' : lambda info:
inventory_mssql_datafiles("datafiles", info),
'service_description' : 'Datafile %s',
- 'group' : "mssql_transactionlogs",
+ 'group' : "mssql_datafiles",
'has_perfdata' : True,
'default_levels_variable' : 'mssql_datafiles_default_levels',
'includes' : ["mssql.include"]
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 002eae8..3c53a79 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -6405,17 +6405,35 @@ def levels_absolute_or_dynamic(name, value):
register_check_parameters(
subgroup_applications,
"mssql_transactionlogs",
- _("MSSQL Datafile and Transactionlog Sizes"),
+ _("MSSQL Transactionlog Sizes"),
Dictionary(
title = _("File Size Levels"),
elements = [
- ("used_levels", levels_absolute_or_dynamic(_("Datafile or
Transactionlog"), _("used"))),
- ("allocated_used_levels",
levels_absolute_or_dynamic(_("Datafile or Transactionlog"), _("used of
allocation"))),
- ("allocated_levels", levels_absolute_or_dynamic(_("Datafile or
Transactionlog"), _("allocated"))),
+ ("used_levels",
levels_absolute_or_dynamic(_("Transactionlog"), _("used"))),
+ ("allocated_used_levels",
levels_absolute_or_dynamic(_("Transactionlog"), _("used of
allocation"))),
+ ("allocated_levels",
levels_absolute_or_dynamic(_("Transactionlog"), _("allocated"))),
]
),
TextAscii(
- title = _("Service descriptions"),
+ title = _("Database Name"),
+ allow_empty = False),
+ "dict"
+)
+
+register_check_parameters(
+ subgroup_applications,
+ "mssql_datafiles",
+ _("MSSQL Datafile Sizes"),
+ Dictionary(
+ title = _("File Size Levels"),
+ elements = [
+ ("used_levels", levels_absolute_or_dynamic(_("Datafile"),
_("used"))),
+ ("allocated_used_levels",
levels_absolute_or_dynamic(_("Datafile"), _("used of allocation"))),
+ ("allocated_levels",
levels_absolute_or_dynamic(_("Datafile"), _("allocated"))),
+ ]
+ ),
+ TextAscii(
+ title = _("Database Name"),
allow_empty = False),
"dict"
)