Page 2 sur 2
Re: Script qui teste l'accès web de domoticz
Publié : 18 juil. 2017, 23:10
par Jeff
Chrominator a écrit :C'est bien tout ça, ça fait travailler les neurones.
Pour les fainéants qui sont sous Linux comme moi (à vous de deviner si je suis fainéant, sous Linux ou les deux

), y a monit qui marche très bien.
Y a même un
tuto dans le wiki Domoticz.
Nickel, ce qu'il me fallait pour domoticz et mosquitto, en test, merci

Re: Script qui teste l'accès web de domoticz
Publié : 21 juil. 2017, 16:33
par totof60
Chrominator a écrit :C'est bien tout ça, ça fait travailler les neurones.
Pour les fainéants qui sont sous Linux comme moi (à vous de deviner si je suis fainéant, sous Linux ou les deux

), y a monit qui marche très bien.
Y a même un
tuto dans le wiki Domoticz.
pour les fainéants comme moi y a le tuto en Français ! :
https://projetsdiy.fr/monit-surveillanc ... XGtW9xLeUm
Re: Script qui teste l'accès web de domoticz
Publié : 23 juil. 2017, 11:41
par Jeff
1er test concluant hier, plantage de mosquitto qui a tendance a scratcher 1 fois par semaine ! Redémarrage autonome avec le petit mail qui va bien
Domoticz ronronne pendant de temps
Je constate quand même que la mémoire grimpe pour domoticz et mosquitto

- 20170723_114417-755x156.png (20.43 Kio) Consulté 5628 fois
Re: Script qui teste l'accès web de domoticz
Publié : 02 août 2017, 10:50
par totof60
Monit installé et configuré depuis plusieurs jours.
je reçois régulièrement une alerte sur le PID ? cela correspond à quoi svp ?
Code : Tout sélectionner
[CEST Jul 31 10:32:01] info : Starting Monit 5.9 daemon with http interface at [*:2812]
[CEST Jul 31 10:32:01] info : Monit start delay set -- pause for 300s
[CEST Jul 31 10:37:08] info : Starting Monit HTTP server at [*:2812]
[CEST Jul 31 10:37:08] info : Monit HTTP server started
[CEST Jul 31 10:37:08] info : 'raspberrypi' Monit started
[CEST Jul 31 18:02:13] error : 'domoticz' process PID changed from 777 to 11622
[CEST Jul 31 18:07:20] info : 'domoticz' process PID has not changed since last cycle
[CEST Jul 31 21:22:22] error : 'domoticz' process PID changed from 11622 to 1404
[CEST Jul 31 21:27:22] info : 'domoticz' process PID has not changed since last cycle
[CEST Aug 1 00:02:24] error : 'domoticz' process PID changed from 1404 to 18193
[CEST Aug 1 00:07:25] info : 'domoticz' process PID has not changed since last cycle
[CEST Aug 2 08:42:53] error : 'domoticz' process PID changed from 18193 to 31656
[CEST Aug 2 08:47:58] info : 'domoticz' process PID has not changed since last cycle
Re: Script qui teste l'accès web de domoticz
Publié : 02 août 2017, 11:50
par Chrominator
Sans voir la section correspondante à Domoticz dans ton fichier de configuration de monit, il semblerait que Domoticz soit relancé par un autre process que monit, ce qui produit ce changement de PID.
Aurais-tu un autre script ou programme lancé pour relancer l'instance de Domoticz ?

Re: Script qui teste l'accès web de domoticz
Publié : 02 août 2017, 14:37
par totof60
Merci Chrominator de t'y intéresser
Voici la partie config de monit pour la partie domoticz :
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://192.168.0.236: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"
check file domoticz.db
with path /home/pi/domoticz/domoticz.db
if changed checksum
then alert
Un autre script ? hummm .... bah peut être celui de ce post qui test l’accès web
Pour info j'ai désactivé la surveillance du checksum qui remonte aussi beaucoup d'erreur .