mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-01 14:08:34 +03:00
HDDTEMP config IP? #1508
This commit is contained in:
parent
55752a9788
commit
848740e5b3
@ -194,6 +194,9 @@ critical=90
|
||||
temperature_core_careful=60
|
||||
temperature_core_warning=70
|
||||
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
|
||||
# Default values if not defined: 45/52/60
|
||||
temperature_hdd_careful=45
|
||||
|
@ -39,7 +39,11 @@ class Plugin(GlancesPlugin):
|
||||
stats_init_value=[])
|
||||
|
||||
# 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
|
||||
# The HDD temp is displayed within the sensors plugin
|
||||
@ -54,7 +58,7 @@ class Plugin(GlancesPlugin):
|
||||
|
||||
if self.input_method == 'local':
|
||||
# Update stats using the standard system lib
|
||||
stats = self.glancesgrabhddtemp.get()
|
||||
stats = self.hddtemp.get()
|
||||
|
||||
else:
|
||||
# Update stats using SNMP
|
||||
|
Loading…
Reference in New Issue
Block a user