@cryptotaxi247 / netdata-1 / commits / a55ebd6d4

add new option to conf file; returned back if in chart.py

lgz committed Dec 25, 2016 at 04:06 UTC a55ebd6d42d6c39484765e8a83e47d3f4d7f4814
2 files changed +4 -1
conf.d/python.d/hddtemp.conf
+3
@@ -58,6 +58,7 @@
58 #
59 # host: 'IP or HOSTNAME' # the host to connect to
60 # port: PORT # the port to connect to
61 +# fahrenheit: True/False # fahrenheit instead of celsius. Default is False
62 #
63
64 # By default this module will try to autodetect disks
@@ -77,11 +78,13 @@
78 localhost:
79 name: 'local'
80 host: 'localhost'
81 + fahrenheit: False
82 port: 7634
83
84 localipv4:
85 name: 'local'
86 host: '127.0.0.1'
87 + fahrenheit: False
88 port: 7634
89
90 localipv6:
python.d/hddtemp.chart.py
+1 -1
@@ -82,7 +82,7 @@ class Service(SocketService):
82 val = 0
83 data[raw[i*5+1].replace("/dev/", "")] = val
84
85 - if not data:
85 + if len(data) == 0:
86 self.error("received data doesn't have needed records")
87 return None
88 else: