Minecraft Server Status Check
Simple python script using mcstatus
to monitor your servers activity.
The script has been deployed to a free tier AWS EC2 instance where it runs every X minutes (cronjob).
First open cfg.json
and edit it for your needs.
The "server_ip"
parameter is for configuring your server ip that you want to inspect.
The "sender_email_address"
, "sender_password"
can be left as is.
Run crontab -e
in your terminal and add the script to your crontab :
*/10 * * * * /usr/bin/python3 /"your script location"/script.py >> ~/cron.log 2>&1
-- this cronjob will run every 10 minutes.
Run crontab -l
in your terminal to check if they have been added.
Run crontab -r
to remove all cronjobs from your crontab