Skip to content

sirbudd/Minecraft-Server-Status-Check

Repository files navigation

Minecraft-Server-Status-Check

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).

Libriaries/Frameworks used

  1. mcstatus
    • pip install mcstatus
  2. Crontab
    • pip install python-crontab
  3. pymongo
    • pip install pymongo

Configuring you parameters

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.

Adding cronjobs

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

About

Minecraft Server Status Check

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages