Page 1 of 1

Monitor domoticz log file

Posted: Tuesday 03 October 2017 13:25
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

Re: Monitor domoticz log file

Posted: Tuesday 03 October 2017 13:31
by Egregius
I think fail2ban could do that.
Fail2ban monitors logfiles. Normally to block users but you can create custom actions.

Re: Monitor domoticz log file

Posted: Tuesday 03 October 2017 19:27
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


Re: Monitor domoticz log file

Posted: Tuesday 03 October 2017 20:22
by Blaabjerg
Can you tell my how :-)

Re: Monitor domoticz log file

Posted: Tuesday 03 October 2017 21:28
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


Re: Monitor domoticz log file

Posted: Wednesday 04 October 2017 22:32
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.

Re: Monitor domoticz log file

Posted: Friday 13 October 2017 12:45
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.

Re: Monitor domoticz log file

Posted: Sunday 22 October 2017 9:40
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.