Hello,
I am seeing that sometimes domoticz does not see sensors and I do have identified that the issue is coming from Phoscon / Deconz that is freezed.
I'm really not skilled with processes and pid, can somebody help me configuring monit so that deconz/Phoscon is monitored and restarted if freezed?
Thanks
Monit : how to monitor Phoscon/deconz
Moderators: leecollings, remb0
-
JBN
- Posts: 41
- Joined: Saturday 13 July 2013 8:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sweden
- Contact:
Re: Monit : how to monitor Phoscon/deconz
How do you know that the process is hung or slow to respond?
If the CPU is high, perhaps something like this?
check deCONZ
matching "deCONZ"
start program = "/bin/systemctl start deCONZ" with timeout 30 seconds
stop program = "/bin/systemctl stop deCONZ"
if cpu usage > 80% for 2 cycles then restart
But personally I would try to see if the API is unresponsive by either parsing the Domoticz logs (ie a Phython hack) or simply calling the API (also something like Phython).
If the CPU is high, perhaps something like this?
check deCONZ
matching "deCONZ"
start program = "/bin/systemctl start deCONZ" with timeout 30 seconds
stop program = "/bin/systemctl stop deCONZ"
if cpu usage > 80% for 2 cycles then restart
But personally I would try to see if the API is unresponsive by either parsing the Domoticz logs (ie a Phython hack) or simply calling the API (also something like Phython).
-
Patricen
- Posts: 119
- Joined: Tuesday 06 February 2018 18:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta rel
- Contact:
Re: Monit : how to monitor Phoscon/deconz
Excellent, thanks for the clues!
Who is online
Users browsing this forum: No registered users and 1 guest