Module: check_mk
Branch: master
Commit: 9d4c5b4973e30150284e20698614622367569cca
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9d4c5b4973e301…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Jan 19 16:59:50 2015 +0100
lnx_thermal: Now has default levels
---
checks/lnx_thermal | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/checks/lnx_thermal b/checks/lnx_thermal
index 959f00d..b7eb019 100644
--- a/checks/lnx_thermal
+++ b/checks/lnx_thermal
@@ -35,6 +35,11 @@
# thermal_zone0 enabled acpitz 38000 98000 critical
# thermal_zone1 pkg-temp-0 44000 0 passive 0 passive
+factory_settings["lnx_thermal_default_levels"] = {
+ "levels" : (70, 80),
+ "device_levels_handling" : "devdefault",
+}
+
def inventory_lnx_thermal(info):
return [ (l[0].replace('thermal_zone', 'Zone '), {}) for l in info ]
@@ -91,5 +96,6 @@ check_info['lnx_thermal'] = {
"service_description" : "Temperature %s",
"has_perfdata" : True,
"group" : "temperature",
+ "default_levels_variable" : "lnx_thermal_default_levels",
"includes" : [ "temperature.include" ],
}