Module: check_mk
Branch: master
Commit: 6793649c325d820237913e37d5a79e516c4cf832
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6793649c325d82…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 12 15:52:14 2015 +0100
postgres checks: fixed naming of default_levels variables
---
checks/postgres_bloat | 4 ++--
checks/postgres_connections | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/postgres_bloat b/checks/postgres_bloat
index a529adb..e8a50c0 100644
--- a/checks/postgres_bloat
+++ b/checks/postgres_bloat
@@ -35,7 +35,7 @@
#
postgres;pg_catalog;pg_amproc;291;3;2;1.5;1;8192;8192;pg_amproc_fam_proc_index;291;4;2;2.0;2;16384;16384;24576
#
postgres;pg_catalog;pg_amop;403;4;3;1.3;1;8192;8192;pg_amop_opr_fam_index;403;4;2;2.0;2;16384;16384;24576
-factory_settings["postgres_bloat"] = {
+factory_settings["postgres_bloat_default_levels"] = {
'table_bloat_perc': (180.0, 200.0), # WARN at 180%, CRIT at 200%
'index_bloat_perc': (180.0, 200.0)
}
@@ -129,7 +129,7 @@ check_info['postgres_bloat'] = {
"inventory_function" : inventory_postgres_bloat,
"service_description" : "PostgreSQL Bloat %s",
"group" : "db_bloat",
- "default_levels_variable" : "postgres_bloat",
+ "default_levels_variable" : "postgres_bloat_default_levels",
"has_perfdata" : True,
"includes" : [ "postgres.include" ]
}
diff --git a/checks/postgres_connections b/checks/postgres_connections
index 1488f1a..bc2e6c5 100644
--- a/checks/postgres_connections
+++ b/checks/postgres_connections
@@ -35,7 +35,7 @@
# template0;0;100
# template1;0;100
-factory_settings["postgres_connections"] = {
+factory_settings["postgres_connections_default_levels"] = {
'levels_perc': (80.0, 90.0), # Levels at 80%/90% of maximum
}
@@ -87,7 +87,7 @@ check_info['postgres_connections'] = {
"service_description" : "PostgreSQL Connections %s",
"group" : "db_connections",
"has_perfdata" : True,
- "default_levels_variable" : "postgres_connections",
+ "default_levels_variable" :
"postgres_connections_default_levels",
"includes" : [ "postgres.include" ]
}