Monit : how to monitor Phoscon/deconz

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Patricen
Posts: 119
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Monit : how to monitor Phoscon/deconz

Post by Patricen »

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

Post by JBN »

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).
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

Post by Patricen »

Excellent, thanks for the clues!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest