AntGuardian Save

Antminer monitor and auto-restart tool (Watchdog). 100% Free Software (Libre)

Project README

AntGuardian

AntMiner monitor and auto-restart tool

Compatible with all AntMiners from Bitmain. Works on Linux, Windows and Mac OS

Scans the local network for miners. Once connected, restarts any miner when accepted shares do not increase in SECONDS_4_CHECKS seconds, given that there is an active internet connection (checks with google.com).

This software and all its dependencies are free and open source. Free as in free speach not as in free beer, meaning it respects your freedom! Please star on GitHub and share with your miner friends!

Video Tutorial

https://www.youtube.com/watch?v=4nlnK1SP49s

Prerequisites

  • NMap

Download and install NMap. Link: https://nmap.org/download.html

  • Python

Most Mac and Linux distributions come with Python pre-installed. For windows and other systems, you may need to download and install Python first. Link: https://www.python.org/downloads/

Installation

Download the AntGuardian repository and unzip it. Link: https://github.com/rsolano60/AntGuardian

  • Install Python requirements

Using the command prompt, navigate to directory Downloads/AntGuardian and run the command:

INSTALL COMMAND:

pip install -r requirements.txt

If you have problems running PIP directly, try with this command:

python3 -m pip install -r requirements.txt 

Setup

If you have changed the password of your miners from the default "root", you must change the PASS varieble in the script file "AntGuardian.py", for the actual password. Otherwise, you are ready to run the script.

#SETUP:
#---------SETUP-----------------SETUP-----------------SETUP-----------------SETUP-----------------SETUP-------
USER = 'root'
PASS = 'root' # Replace with your miner's password
SECONDS_4_CHECKS = 95 # you need at least 6 seconds per miner, increase this number if monitoring 16 miners or more
SECONDS_TO_INTERNET = 60
REBOOT_TIME = 300
#--------END-SETUP-------------END-SETUP-------------END-SETUP-------------END-SETUP-------------END-SETUP----

Running

Using the command prompt, while in the directory Downloads/AntGuardian, run the program by entering the command:

RUN COMMAND:

python AntGuardian.py

Options

You may also change the time intervals (seconds):

  • SECONDS_4_CHECKS: Time to wait between each check for accepted shares.
  • REBOOT_TIME: Lead time given to miners to start mining once they are rebooted by AntGuardian.
  • SECONDS_TO_INTERNET: Lead time given to miners to start mining again when internet connection is lost and recovered.
  • To close the terminal without having to quit AntGuardian, you can use the program "screen", running the program like this (Mac + linux):
screen python AntGuardian.py

Then press Ctrl+A, Ctrl+D to detach screen and you can close the terminal. AntGuardian will keep running on the background.

To return to Antguardian:

screen -r

Troubleshooting:

-If you have any problems installing requirements, try a different version of Python. You might have multiple versions installed in your computer. If trouble persists. Uninstall all versions of Python and start from scratch

Official Thread: https://bitcointalk.org/index.php?topic=5177451.0

Sample pictures

alt text

alt text

Authors

Ricardo Solano - Initial work - RSolano

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU GPL V3 License - see the LICENSE file for details

Please Donate to the project!

1 every 5 users have donated an average of $50, but even $1 helps!!! it would not be possible without you!!!

BITCOIN (BTC) address:

35w2Zmuj9Y83vb8uFvfjxQQfuzVYKwY4Dd

BITCOIN QR code:
alt text

ETHEREUM (ETH) address:

0x98a1B000f7B5f2EdB1ea2A830f0D3B33a2eC4075

alt text

Other cryptocurrency addresses (ticker symbol):

LITECOIN (LTC)

MJSVm7thYYENdV9zPzAyEv6s2Km4EUWKPy

DASH

Xcs6DN7LXnEtQqLiKVGwZMLpMGJ9tufBcP

ZCASH (ZEC)

t1W8vQte15jatZyzBcYuubzznMTF6LhEWJ9

Bitcoin Cash (BCH)

qqgpy278maqdngqqf7ts232fjnk5kmusw5wag2ykjy

STELAR (XLM)

GBJMCLVHEVBDMT6GYZ7LPAQJJZHAOPD7KO2Y3GSUTH4XZYB3V3MV4BJY

Bitcoin Gold (BTG)

AGuQfFB4mHBCpUmXmGxtiU9vEZGBiu2ZCW

Wow you are still here? thank you!! Please leave a STAR on GitHub :)

Open Source Agenda is not affiliated with "AntGuardian" Project. README Source: rsolano60/AntGuardian