il arrive parfois que chez moi j'ai des coupures de courant, le probleme c'est que domoticz redemarre bien mais que je n'ai plus acces à l'interface web sur mon pc ou via imperihome. tres embetant....
j'ai donc installé monitoring https://www.domoticz.com/wiki/Monitorin ... sing_Monit
apres la coupure de courant monit se lance bien mais il ne redémarre pas mon domoticz, j'ai droit à un j'ai mis
Code : Tout sélectionner
check process domoticz with pidfile /var/run/domoticz.pid
start program = "/etc/init.d/domoticz.sh start"
stop program = "/etc/init.d/domoticz.sh stop"
if failed
url http://127.0.0.1:8080/json.htm?type=command¶m=getversion
and content = '"status" : "OK"'
for 2 cycles
then restart
if 5 restarts within 5 cycles then exec "/sbin/reboot"