Module: check_mk
Branch: master
Commit: 8f3a013715a122f50529a4673a453b71b2685aab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8f3a013715a122…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Fri Mar 13 00:09:37 2015 +0100
#2103 FIX mbg_lantime_ng_temp: levels were not working
please redo a service discovery to get a new service description for the
service on your device
---
.werks/2103 | 10 ++++++++++
ChangeLog | 2 ++
checkman/mbg_lantime_ng_temp | 3 +++
checks/mbg_lantime_ng_temp | 8 ++++----
4 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/.werks/2103 b/.werks/2103
new file mode 100644
index 0000000..b7cf7c7
--- /dev/null
+++ b/.werks/2103
@@ -0,0 +1,10 @@
+Title: mbg_lantime_ng_temp: levels were not working
+Level: 1
+Component: checks
+Compatible: incomp
+Version: 1.2.7i1
+Date: 1426201624
+Class: fix
+
+please redo a service discovery to get a new service description for the
+service on your device
diff --git a/ChangeLog b/ChangeLog
index 4305391..e593b7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -251,6 +251,8 @@
* 2094 FIX: Fixed missing agent section when ntpq times out after 5 seconds
* 2095 FIX: oracle_crs_voting: Also handling voting disks with id 0 (seen on old CRS
10.2.0.5.0)...
* 2101 FIX: cisco_temperature: check can now handle cases when no description of the
sensor is available
+ * 2103 FIX: mbg_lantime_ng_temp: levels were not working...
+ NOTE: Please refer to the migration notes!
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checkman/mbg_lantime_ng_temp b/checkman/mbg_lantime_ng_temp
index 78657b6..0c76a45 100644
--- a/checkman/mbg_lantime_ng_temp
+++ b/checkman/mbg_lantime_ng_temp
@@ -10,6 +10,9 @@ description:
inventory:
One check per device is created.
+item:
+ "System"
+
perfdata:
The temperature
diff --git a/checks/mbg_lantime_ng_temp b/checks/mbg_lantime_ng_temp
index f32faea..624ef21 100644
--- a/checks/mbg_lantime_ng_temp
+++ b/checks/mbg_lantime_ng_temp
@@ -25,20 +25,20 @@
# Boston, MA 02110-1301 USA.
factory_settings["mbg_lantime_ng_temp_default_levels"] = {
- "levels": (90, 95),
+ "levels": (80, 90), # levels for system temperature
}
def inventory_mbg_lantime_ng_temp(info):
if info:
- return[ (None, {}) ]
+ return[ ("System", {}) ]
-def check_mbg_lantime_ng_temp(_no_item, params, info):
+def check_mbg_lantime_ng_temp(item, params, info):
return check_temperature(float(info[0][0]), params)
check_info["mbg_lantime_ng_temp"] = {
"check_function" : check_mbg_lantime_ng_temp,
"inventory_function" : inventory_mbg_lantime_ng_temp,
- "service_description" : "Temperature",
+ "service_description" : "Temperature %s",
"default_levels_variable" :
"mbg_lantime_ng_temp_default_levels",
"has_perfdata" : True,
"group" : "temperature",