Ajouté un canary suplémentaire dans Grafana (tmr_socat1_) pour les problèmes de socat observés pendant la nuit

This commit is contained in:
Christian Zufferey
2020-06-07 11:20:29 +02:00
parent 9c887e7242
commit e6d7448d77
2 changed files with 6 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ telnet -rN localhost 23000
]]
print("\n 0_tst4_socat.lua zf200606.1256 \n")
print("\n 0_tst4_socat.lua zf200607.1102 \n")
local node, table, tmr, uwrite, tostring =
node, table, tmr, uart.write, tostring
@@ -158,6 +158,9 @@ end
tmr_socat1=tmr.create()
tmr_socat1:alarm(15*1000, tmr.ALARM_AUTO , function()
if http_post~=nil then http_post(influxdb_url,"energy,memory=tmr_socat1_"..yellow_id.." ram="..node.heap()) end
-- rt_retry=1
-- if verbose then gpio.write(zLED, gpio.LOW) tmr.delay(10000) gpio.write(zLED, gpio.HIGH) end
if srv_rt~=nil then

View File

@@ -1,5 +1,5 @@
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
# zf200606.1231
# zf200607.1109
Todo à faire pour ce projet !
@@ -102,6 +102,7 @@ verbose=true
./luatool.py --ip $zIP:$zport -f 0_cron.lua
./luatool.py --ip $zIP:$zport -f 0_http_post.lua
./luatool.py --ip $zIP:$zport -f 0_htu21d.lua
./luatool.py --ip $zIP:$zport -f 0_tst4_socat.lua
./luatool.py --ip $zIP:$zport --zrestart