Monitor domoticz log file

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
Blaabjerg
Posts: 5
Joined: Friday 11 August 2017 0:27
Target OS: Windows
Domoticz version:
Contact:

Monitor domoticz log file

Post by Blaabjerg »

Hi,

I would like to monitor the domoticz.log for ex the word "Something" and update an text switch. So when the "something" word is written in the log, it should update the switch.

Is that possible?

Thanks

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

Re: Monitor domoticz log file

Post by Egregius »

I think fail2ban could do that.
Fail2ban monitors logfiles. Normally to block users but you can create custom actions.
jannl
Posts: 674
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Monitor domoticz log file

Post by jannl »

With a script that should be no problem at all. Not that it is very easy.....

Verstuurd vanaf mijn SM-G930F met Tapatalk

Blaabjerg
Posts: 5
Joined: Friday 11 August 2017 0:27
Target OS: Windows
Domoticz version:
Contact:

Re: Monitor domoticz log file

Post by Blaabjerg »

Can you tell my how :-)
jannl
Posts: 674
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Monitor domoticz log file

Post by jannl »

Haha I might succeed in that, but as I said, not easy. What is the reason you want to do this?

Verstuurd vanaf mijn SM-G930F met Tapatalk

Blaabjerg
Posts: 5
Joined: Friday 11 August 2017 0:27
Target OS: Windows
Domoticz version:
Contact:

Re: Monitor domoticz log file

Post by Blaabjerg »

I have zipato keypad and I would like to see with user that disarm/arm my alarm. And what I can tell, the log file is the on place I can see that. On the switch I can on see on / off events. It dosent show witch user.
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Monitor domoticz log file

Post by woody4165 »

I'm interested too in monitoring Log.
I use OpenWebNet and some commands are not managed, but I can see the command in the Log.
So it can be useful for me to trap this Log line and do some action.
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
domonator
Posts: 5
Joined: Thursday 12 January 2017 22:14
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Monitor domoticz log file

Post by domonator »

I'm also interested, I'd like to check my error log for an error from the Mi-light bridge and send a pushover message so I know when to reset it.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest