提交 848740e5 编写于 作者: N nicolargo

HDDTEMP config IP? #1508

上级 55752a97
...@@ -194,6 +194,9 @@ critical=90 ...@@ -194,6 +194,9 @@ critical=90
temperature_core_careful=60 temperature_core_careful=60
temperature_core_warning=70 temperature_core_warning=70
temperature_core_critical=80 temperature_core_critical=80
# Define hddtemp server IP and port (default is 127.0.0.1 and 7634 (TCP))
hddtemp_host=127.0.0.1
hddtemp_port=7634
# Temperatures threshold in °C for hddtemp # Temperatures threshold in °C for hddtemp
# Default values if not defined: 45/52/60 # Default values if not defined: 45/52/60
temperature_hdd_careful=45 temperature_hdd_careful=45
......
...@@ -39,7 +39,11 @@ class Plugin(GlancesPlugin): ...@@ -39,7 +39,11 @@ class Plugin(GlancesPlugin):
stats_init_value=[]) stats_init_value=[])
# Init the sensor class # Init the sensor class
self.glancesgrabhddtemp = GlancesGrabHDDTemp(args=args) self.hddtemp = GlancesGrabHDDTemp(args=args,
host=self.get_conf_value("hddtemp_host",
default="127.0.0.1"),
port=int(self.get_conf_value("hddtemp_port",
default="7634")))
# We do not want to display the stat in a dedicated area # We do not want to display the stat in a dedicated area
# The HDD temp is displayed within the sensors plugin # The HDD temp is displayed within the sensors plugin
...@@ -54,7 +58,7 @@ class Plugin(GlancesPlugin): ...@@ -54,7 +58,7 @@ class Plugin(GlancesPlugin):
if self.input_method == 'local': if self.input_method == 'local':
# Update stats using the standard system lib # Update stats using the standard system lib
stats = self.glancesgrabhddtemp.get() stats = self.hddtemp.get()
else: else:
# Update stats using SNMP # Update stats using SNMP
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册