Skip to content

Deploy Flow Verification Node monitoring and alerting #9

Description

@cfl0ws
  • Basic system monitoring
  • Network specific monitoring

Note: I already have a very simple monitoring tool running on this server.


TOKEN=1225105282:AAHVAVIwJaFNcz-QcfqYJ2NZZwYfKUOaLFY
CHAT_ID=-1001346480078
URL="https://api.telegram.org/bot$TOKEN/sendMessage"
MESSAGE="Flow Verification Node NOT RUNNING"

/usr/bin/curl localhost:8080/metrics | grep consensus_compliance_sealed_height
RESULT=$?

echo -e "Grep identified as: $RESULT"

if [ $RESULT == 1 ]; then
  echo -e $MESSAGE
  # Send to Telegram
  curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$(echo -e $MESSAGE)"
fi```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions