How to check health status of Domoticz processes like webserver

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
ArnoutZ
Posts: 12
Joined: Monday 30 November 2015 17:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How to check health status of Domoticz processes like webserver

Post 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?
SweetPants

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

Post 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!!!!
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

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

Post 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.
ArnoutZ
Posts: 12
Joined: Monday 30 November 2015 17:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by ArnoutZ »

@SweetPants: Good suggestion. Will do.
Not sure though how to delete this one....
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

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

Post by Egregius »

A moderator should move the topic.
Use a bash script to query the json api. Search the forum, already scripts on it.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest