[665] Option to disable logging of hardware monitor

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

[665] Option to disable logging of hardware monitor

Post 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?
choucsou
Posts: 1
Joined: Saturday 13 February 2016 11:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [665] Option to disable logging of hardware monitor

Post 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.
methinx
Posts: 6
Joined: Sunday 27 November 2016 19:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: [665] Option to disable logging of hardware monitor

Post 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?
Raspberry Pi 3 + RLink + Aeon Labs Gen 5 USB + 4 Relay board on GPIO + Fibaro wall plug + 2x Neo coolcam wall plug + 2 Eurodomest power outlets + 2x fibaro FGS-223 double switch.
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: [665] Option to disable logging of hardware monitor

Post 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.
mehtadone
Posts: 8
Joined: Sunday 15 January 2017 11:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [665] Option to disable logging of hardware monitor

Post by mehtadone »

Hi,

Did anyone find a solution to this?

Thanks,
quack3d
Posts: 86
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: [665] Option to disable logging of hardware monitor

Post by quack3d »

I agree. All the information from hardware monitor makes it hard to see log information from other devices.
User avatar
psubiaco
Posts: 222
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: [665] Option to disable logging of hardware monitor

Post 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.
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: [665] Option to disable logging of hardware monitor

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest