Language: Chinese
A monitoring tool for Filecoin Saturn L1 node.
Python3
- 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.
- Make it executable
chmod +x ./mail.py
- Test
Send a test email:
./mail.py test
- Setup the cron to run every 5 minutes:
crontab -e
Add the following text replacing the path:
*/5 * * * * /path/to/mail.py
MIT