Module: check_mk
Branch: master
Commit: 65b628ce268fa7f3ca213dbfb457c2c791cbbaf9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=65b628ce268fa7…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Jan 27 14:34:49 2016 +0100
mssql_counters: Added vim foldmarkers
---
checks/mssql_counters | 42 +++++++++++++++++++++++++++++++++---------
1 file changed, 33 insertions(+), 9 deletions(-)
diff --git a/checks/mssql_counters b/checks/mssql_counters
index 0839949..61dc160 100644
--- a/checks/mssql_counters
+++ b/checks/mssql_counters
@@ -69,9 +69,20 @@ def inventory_mssql_counters(info, want_counters, perc_w_base,
add_counter_name,
inventory.append((mssql_counters_item(line, add_counter_name), dflt))
return inventory
-#
-# Percentage based values
-#
+# .--Percentage based values---------------------------------------------.
+# | ____ _ |
+# | | _ \ ___ _ __ ___ ___ _ __ | |_ __ _ __ _ ___ |
+# | | |_) / _ \ '__/ __/ _ \ '_ \| __/ _` |/ _` |/ _ \ |
+# | | __/ __/ | | (_| __/ | | | || (_| | (_| | __/ |
+# | |_| \___|_| \___\___|_| |_|\__\__,_|\__, |\___| |
+# | |___/ |
+# | _ _ _ |
+# | | |__ __ _ ___ ___ __| | __ ____ _| |_ _ ___ ___ |
+# | | '_ \ / _` / __|/ _ \/ _` | \ \ / / _` | | | | |/ _ \/ __| |
+# | | |_) | (_| \__ \ __/ (_| | \ V / (_| | | |_| | __/\__ \ |
+# | |_.__/ \__,_|___/\___|\__,_| \_/ \__,_|_|\__,_|\___||___/ |
+# | |
+# '----------------------------------------------------------------------'
def check_mssql_counters_perc(item, params, info, perc_w_base = True):
counter_name = None
@@ -112,9 +123,15 @@ check_info['mssql_counters.cache_hits'] = {
'has_perfdata': True,
}
-#
-# Rates
-#
+#.
+# .--Rates---------------------------------------------------------------.
+# | ____ _ |
+# | | _ \ __ _| |_ ___ ___ |
+# | | |_) / _` | __/ _ \/ __| |
+# | | _ < (_| | || __/\__ \ |
+# | |_| \_\__,_|\__\___||___/ |
+# | |
+# '----------------------------------------------------------------------'
def check_mssql_counters_transactions(item, params, info):
output = []
@@ -201,9 +218,16 @@ check_info['mssql_counters.locks'] = {
'group': 'mssql_counters_locks',
}
-#
-# File Sizes
-#
+
+#.
+# .--File Sizes----------------------------------------------------------.
+# | _____ _ _ ____ _ |
+# | | ___(_) | ___ / ___|(_)_______ ___ |
+# | | |_ | | |/ _ \ \___ \| |_ / _ \/ __| |
+# | | _| | | | __/ ___) | |/ / __/\__ \ |
+# | |_| |_|_|\___| |____/|_/___\___||___/ |
+# | |
+# '----------------------------------------------------------------------'
def check_mssql_file_sizes(item, params, info):