monitor validators, now with logging.

This commit is contained in:
2022-07-28 02:37:04 +00:00
parent d895c2988b
commit 06399e537a
3 changed files with 24 additions and 3 deletions
+8 -1
View File
@@ -5,6 +5,13 @@ LOCATION=`dirname "$0"`
missed_blocks=`curl -s 'https://api-cerberus.cosmostation.io/v1/staking/validator/uptime/cerberusvaloper1krkmg6f0sjwalkx3nq39yt0upxgys7alcjytq4' | jq '.uptime | length'`
if [ "$missed_blocks" -gt 0 ]; then
${LOCATION}/discord.sh general "Cerberus is missing ${missed_blocks} blocks out of the last 100."
`${LOCATION}/discord.sh general "Cerberus is missing ${missed_blocks} blocks out of the last 100."`
fi
echo -n "${missed_blocks},"
if [ -z `date | grep ':00:'` ]; then
echo ""
date
fi
+8 -1
View File
@@ -5,6 +5,13 @@ LOCATION=`dirname "$0"`
missed_blocks=`curl -s 'https://api-evmos.cosmostation.io/v1/staking/validator/uptime/evmosvaloper187860d5xukeksge9jz3wwff7h68asdafxdxh4r' | jq '.uptime | length'`
if [ "$missed_blocks" -gt 0 ]; then
${LOCATION}/discord.sh general "EVMOS is missing ${missed_blocks} blocks out of the last 100."
`${LOCATION}/discord.sh general "EVMOS is missing ${missed_blocks} blocks out of the last 100."`
fi
echo -n "${missed_blocks},"
if [ -z `date | grep ':00:'` ]; then
echo ""
date
fi
+8 -1
View File
@@ -5,6 +5,13 @@ LOCATION=`dirname "$0"`
missed_blocks=`curl -s 'https://api-lum.cosmostation.io/v1/staking/validator/uptime/lumvaloper1krkmg6f0sjwalkx3nq39yt0upxgys7alme6lps' | jq '.uptime | length'`
if [ "$missed_blocks" -gt 0 ]; then
${LOCATION}/discord.sh general "Lum Network is missing ${missed_blocks} blocks out of the last 100."
`${LOCATION}/discord.sh general "Lum Network is missing ${missed_blocks} blocks out of the last 100."`
fi
echo -n "${missed_blocks},"
if [ -z `date | grep ':00:'` ]; then
echo ""
date
fi