Skip to content

A small tool to monitor resources for a set of accounts with notifications

License

Notifications You must be signed in to change notification settings

Volentix/EOSAccountMonitor

 
 

Repository files navigation

eosaccountmonitor

standard-readme compliant

A simple tool that monitor resources and sends daily reports about states for all accounts.

Screen Shot 2019-05-21 at 7 32 32 PM

Since the percentage of RAM is not very reliable metric, the estimated number of remaining transactions based on the average RAM per transaction size is used.

Using online blockchain monitor, for the considered accounts, the average value of the used RAM for the transfer action is taken (160 bytes). Based on this, the estimated number of remaining transactions is calculated.

In my case there was an account which took 747 bytes of RAM for each transfer action. This account marked as heavy and the estimated number of remaining transactions is calculated based on this number.

Such options will be added in the future release soon. For now you can modify it by directly changing the code.

Table of Contents

Background

Install

The script is written by using Python 3.

pip3 install requests
pip3 install tabulate

Usage

Fill the config file:

[DEFAULT]
# The timeout for checking accounts in hours
TIMEOUT=5

# The timeout for sending statistics in hours
STATS_TIMEOUT=24

# Producer
PRODUCER=https://eos.greymass.com

ACCOUNTS=eosio.token,whaleextoken,community123,prospectorsg

# Credentials (Gmail server)
MAIL_LOGIN={email@gmail.com}
MAIL_PASS={password}

# Recipients
RECIPIENTS=email1@gmail.com,email2@gmail.com

# Common transaction (bytes)
TR_USE=160

# Heavy transaction (bytes)
HEAVY_TR_USE=747
HEAVY_ACCOUNTS=accountname

Run: python3 app.py

Maintainers

@sylvaincormier

Contribute

See the contribute file!

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2019 Volentix Labs Inc

About

A small tool to monitor resources for a set of accounts with notifications

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%