Skip to content

minerdao/fil-saturn-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

saturn-monitor

LICENSE

Language: Chinese

A monitoring tool for Filecoin Saturn L1 node.

Requirement

Python3

Configure

  1. Edit mail.py:
smtp_server = 'smtp.office365.com'  # smtp server
smtp_port = 587  # smtp port
sender = 'xxx@outlook.com'  # user
password = '********'  # password

receivers = ['your_receive_email1', 'your_receive_email2']

min_interval_minutes = 60  # minimum interval between notices

If receivers are not set, the email address in the environment variable NODE_OPERATOR_EMAIL is used.

Note: Only support TLS encryption, the smtp port is 587. (Gmail/Outlook/QQ)
  1. Make it executable
chmod +x ./mail.py
  1. Test

Send a test email:

./mail.py test
  1. Setup the cron to run every 5 minutes:
crontab -e

Add the following text replacing the path:

*/5 * * * * /path/to/mail.py

License

MIT

About

A monitoring tool for Filecoin Saturn L1 node.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%