Page 1 of 1
[665] Option to disable logging of hardware monitor
Posted: Sunday 27 December 2015 8:24
by Egregius
I like the hardware monitor to see the cpu, memory and other usage. It's great to see if you make some work to improve the cpu usage etc.
The only downting about it is the logging. Every 30 seconds the same line in the logfile "Hardware Monitor: Fetching data (System sensors)".
I would like that there's an option for that hardware type to disable logging.
What's your opinion about this?
Re: [665] Option to disable logging of hardware monitor
Posted: Saturday 13 February 2016 11:27
by choucsou
Hi,
You could achieve this by disabling Hardware Monitor.
In Domoticz, go to Hardware,
then select the line corresponding to "Motherboard Sensors" Type,
then un-check the "enable" check box,
and press the "update" button.
A line "Hardware Monitor: Stopped..." will appear in the log.
And no more "Hardware Monitor: Fetching data (System sensors)" lines.
You loose hardware sensors devices (such as CPU temperature), but who cares once your Domoticz configuration is stable ?
Hope this helps.
Re: [665] Option to disable logging of hardware monitor
Posted: Sunday 27 November 2016 19:55
by methinx
Hi,
Disabling the monitor itself is no solution. I would like to disable this log as well. I'm monitoring the log for something else, but this hardware monitor is fill up alomst all the log. Is there another sulution?
Re: [665] Option to disable logging of hardware monitor
Posted: Sunday 27 November 2016 23:13
by jake
I understand your issue, I wish we could decide for ourself which device is able to 'spam' te log and which isn't. In my case the OTGW spams the log 2x/minute with a big amount of lines, the same for switches with energy monitoring.
Re: [665] Option to disable logging of hardware monitor
Posted: Tuesday 31 January 2017 10:51
by mehtadone
Hi,
Did anyone find a solution to this?
Thanks,
Re: [665] Option to disable logging of hardware monitor
Posted: Monday 22 May 2017 22:07
by quack3d
I agree. All the information from hardware monitor makes it hard to see log information from other devices.
Re: [665] Option to disable logging of hardware monitor
Posted: Sunday 13 January 2019 22:32
by psubiaco
Maybe adding
-loglevel status in the /etc/init.d/domoticz.sh can help you.
I used that parameter to avoid log file being full in few days:
before:
2019-01-13 22:21:00.989 (DS18B20) Temp (Temp_Sottotetto)
2019-01-13 22:21:01.990 (DS18B20) Temp (Temp_Bagno)
2019-01-13 22:21:02.333 (BMP280) Temp + Humidity + Baro (Temp+Baro esterna)
2019-01-13 22:21:02.990 (DS18B20) Temp (Temp_Camera_Valentina)
2019-01-13 22:21:03.990 (DS18B20) Temp (Temp_Camera_Ospiti)
2019-01-13 22:21:04.991 (DS18B20) Temp (Temp_Stireria)
2019-01-13 22:21:05.991 (DS18B20) Temp (Temp_Camera)
2019-01-13 22:21:10.991 (DS18B20) Temp (Temp_Sottotetto)
2019-01-13 22:21:11.992 (DS18B20) Temp (Temp_Bagno)
2019-01-13 22:21:12.989 (DS18B20) Temp (Temp_Camera_Valentina)
2019-01-13 22:21:13.992 (DS18B20) Temp (Temp_Camera_Ospiti)
2019-01-13 22:21:14.993 (DS18B20) Temp (Temp_Stireria)
2019-01-13 22:21:15.993 (DS18B20) Temp (Temp_Camera)
2019-01-13 22:21:20.993 (DS18B20) Temp (Temp_Sottotetto)
2019-01-13 22:21:21.993 (DS18B20) Temp (Temp_Bagno)
2019-01-13 22:21:22.994 (DS18B20) Temp (Temp_Camera_Valentina)
2019-01-13 22:21:23.994 (DS18B20) Temp (Temp_Camera_Ospiti)
2019-01-13 22:21:24.994 (DS18B20) Temp (Temp_Stireria)
2019-01-13 22:21:25.994 (DS18B20) Temp (Temp_Camera)
2019-01-13 22:21:30.995 (DS18B20) Temp (Temp_Sottotetto)
2019-01-13 22:21:31.995 (DS18B20) Temp (Temp_Bagno)
2019-01-13 22:21:32.379 (BMP280) Temp + Humidity + Baro (Temp+Baro esterna)
2019-01-13 22:21:32.994 (DS18B20) Temp (Temp_Camera_Valentina)
2019-01-13 22:21:33.995 (DS18B20) Temp (Temp_Camera_Ospiti)
2019-01-13 22:21:34.995 (DS18B20) Temp (Temp_Stireria)
2019-01-13 22:21:35.995 (DS18B20) Temp (Temp_Camera)
then I modified /etc/init.d/domoticz.sh adding -loglevel status:
Code: Select all
DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt -verbose 1 -loglevel 3"
DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log -loglevel status"
and all silly lines were no more added to the log file.
Re: [665] Option to disable logging of hardware monitor
Posted: Wednesday 16 January 2019 9:22
by Egregius
This is actually a good tip, thank you.
Because I log also from pass2php to the domoticz log all lines where kind of double before. Now my logfile is a lot cleaner.
Code: Select all
2019-01-16 09:18:01.578 > alexZ = 4.00
2019-01-16 09:18:01.580 > (SWITCH) | => heater2 => Off
2019-01-16 09:18:01.580 Status: User: Admin initiated a switch command (2087/heater2/Off)
2019-01-16 09:18:01.592 > heater2 = Off
2019-01-16 09:19:40.583 > Xlight = Off
2019-01-16 09:19:41.933 > Buiten temperaturen : Darksky = 5.1°C Openweathermap = 5.6°C buiten_temp = 5.4°C
2019-01-16 09:19:42.005 > (SWITCH) | => regenpomp => Off
2019-01-16 09:19:42.005 Status: User: Admin initiated a switch command (323/regenpomp/Off)
2019-01-16 09:19:42.017 > regenpomp = Off
2019-01-16 09:19:42.581 > verbruik => gas = 1.65 | verbruik = 5.8141 | zon = 0.0063 | water = 0.065
2019-01-16 09:20:06.067 > badkamer_temp = 18.9;19;2
2019-01-16 09:20:07.206 > (SWITCH) | => heater1 => Off
2019-01-16 09:20:07.206 Status: User: Admin initiated a switch command (2086/heater1/Off)
2019-01-16 09:20:07.217 > heater1 = Off
2019-01-16 09:20:13.846 > alex_temp = 13.4