Page 1 of 1

How to check health status of Domoticz processes like webserver

Posted: Friday 17 August 2018 15:19
by ArnoutZ
I was on vacation for the last week and after three days on my destination I was not able to get remote access to Domoticz anymore.
I also use the Pilot App which could also not get in touch with my Pi running Domoticz.
By using the IP camera software I could see that all scripts and timers were still running.

This is not the first time that I cannot access Domoticz anymore during the period where you need it the most.
I have returned home now and I am sure that after a reboot everything is fine, but before doing that I would like to know the cause.

As I can use Putty, can anyone point out which checks I can do on my Domoticz configuration to see the health of the different processes? E.g. how can I check if the webserver is the one which crashed and caused the problem. How can I prevent this next time?
Can it be that with every remote session some memory is used which in the end causes something to crash?

Sorry, I see that I posted this question in the Z-Wave section. As it should be in the general section, could one of the moderators move it?

Re: How to check health status of Domoticz processes like webserver

Posted: Friday 17 August 2018 15:43
by SweetPants
Because you are the originator of the topic you can cut-paste it as a new message in the right topic and delete this one!!!!

Re: How to check health status of Domoticz processes like webserver

Posted: Friday 17 August 2018 15:44
by EddyG
I use Monit to monitor all kind of processes, sd-card, disk etc... have alert send and restart domoticz if nessessary. Even reboot the system.
It works for me.

Re: How to check health status of Domoticz processes like webserver

Posted: Friday 17 August 2018 15:54
by ArnoutZ
@SweetPants: Good suggestion. Will do.
Not sure though how to delete this one....

Re: How to check health status of Domoticz processes like webserver

Posted: Friday 17 August 2018 16:04
by Egregius
A moderator should move the topic.
Use a bash script to query the json api. Search the forum, already scripts on it.