Bitcoin Forum
April 30, 2024, 10:20:55 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: AntGuardian - 100% LIBRE Free Software Watchdog for all Bitmain AntMiners  (Read 1345 times)
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
August 21, 2019, 12:54:59 AM
Last edit: May 24, 2020, 12:10:25 PM by rsolano60
 #1

AntGuardian

FREE Open Source Antminer monitor and restart tool

For all of us reluctant to run proprietary software anywhare near our miners, let alone controlling them. Now we have an alternative!

Install instructions:
https://github.com/rsolano60/AntGuardian

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

AntGuardian
AntMiner monitor and auto-restart tool

Compatible with all AntMiners

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!

Happy LIBRE mining!
1714515655
Hero Member
*
Offline Offline

Posts: 1714515655

View Profile Personal Message (Offline)

Ignore
1714515655
Reply with quote  #2

1714515655
Report to moderator
1714515655
Hero Member
*
Offline Offline

Posts: 1714515655

View Profile Personal Message (Offline)

Ignore
1714515655
Reply with quote  #2

1714515655
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714515655
Hero Member
*
Offline Offline

Posts: 1714515655

View Profile Personal Message (Offline)

Ignore
1714515655
Reply with quote  #2

1714515655
Report to moderator
NotFuzzyWarm
Legendary
*
Online Online

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
August 21, 2019, 01:12:54 PM
 #2

Looks interesting. I'd give it a try but I stopped using Bitmain miners several years ago in favor of far more reliable gear from Canaan.
Can it work with any miner that uses Kano's cgminer API?

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
August 21, 2019, 03:02:54 PM
 #3

Looks interesting. I'd give it a try but I stopped using Bitmain miners several years ago in favor of far more reliable gear from Canaan.
Can it work with any miner that uses Kano's cgminer API?

We can make it work with any API pretty easily. I do not have miners to test tho.
Earlier versions of antGuardian use BMMiner API through SSH but since ssh was closed we started just using the web interface.

I would give it a try for CGMiner API but I currently do not have any miner to test...
Im looking forward to anyone joining development. You can even create a pull request on github and start de conversation going.
Anyway thanks for your reply!!
Please STAR on GitHub and Share!! Lets promote freedom respecting software!
NotFuzzyWarm
Legendary
*
Online Online

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
August 21, 2019, 03:22:05 PM
Last edit: August 23, 2019, 01:02:33 PM by NotFuzzyWarm
 #4

Bitmains API - and for that matter just about every other mfgr of miners API - are all based on or actually using the CGminer API written by Kano back when he and -ck were still working together. While BM may have added a few new commands specific to their miners (I doubt it) if this works on one make of miner then in theory it should work on all of them.

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
August 21, 2019, 06:19:51 PM
Last edit: August 21, 2019, 11:15:48 PM by frodocooper
 #5

OK, maybe you can try version 0.1.1 then,, it is a fairly simple script. The only difference with the current version is you have to enter the list of IPs for your miners (not very convenient when using DHCP).

https://github.com/rsolano60/AntGuardian/blob/master/Old%20Versions/AntGuardian0.1.1.py

Hope this works for you.
kano
Legendary
*
Offline Offline

Activity: 4480
Merit: 1800


Linux since 1997 RedHat 4


View Profile
August 23, 2019, 11:27:58 AM
Merited by frodocooper (2)
 #6

If you read the API-README and can access the full config file of the miner, you can turn on mcast so the API of every miner, with mcast enabled, will respond to a single mcast message on the network ...

The miner.php can also use that so that the php finds all your miners, with mcast enabled, without you having to tell it their IPs

https://github.com/kanoi/cgminer/blob/master/API-README

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
February 06, 2021, 05:35:06 PM
Last edit: February 09, 2021, 10:49:00 PM by frodocooper
 #7

COOL !!!
Should have read this before I developed my script!
However I think this can´t restart the system OS like the HTTP GUI approach can, can it?
IDK if that is usefull at all
Thank You!!!



Update: Bug fix: AntGuardian.py used to throttle while internet() returned false. A delay fixed it on the new version 0.1.3

Please update or your CPU might throttle when you loose internet connection.

Happy mining! Cheesy



A lot of traffic to GitHub is coming from here so some of you guys must be out here. Im talking about AntGuardian users.

I know it is a simple tool for a very niche sector of people but It has found its way to gain some popularity as I can see from the Github traffic statistics and from generous donations recieved over the past few months. There are other free alternatives but in my opinion none is is as "bare bones" as this one. You can literally analyze the whole python code in an afternoon, which is nice if you are paranoid like me.

Another reason I think it has gained popularity is because you just set it and forget it. Although it would be very very nice if we could release some play store or SNAP store packages or windows executables for ease of use but I think that might just miss the whole point to begin with... About being free and transparent and all... Let me know what you think about this

I would appreciate some feedback from users since I have not been mining for a few months now. Specially I would like some feedback about how it works with the new miners. But any feedback good or bad is appreciated. Let me know what miners are you using it for, adn for how long (if you feel comfortable with it).

Personally I just had 3 S9s, and It just worked Flawlessly. I have heard from some users having 12 and 13 miners working perfectly 24/7. I would like to hear more feedback about how it works with 20+ miners. Happy mining!
eeva1990
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 22, 2021, 04:48:15 AM
 #8

Hello, this don't work with s9k, Restart the miner every so often, how do I contact you to pay for one that works?
Kingen75
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 24, 2021, 12:44:42 AM
Last edit: February 26, 2021, 12:41:44 AM by frodocooper
 #9

Hi, i´m trying to get this to work but i get this error: File "AntGuardian.py", line 17, in <module> import request - ImportError: No module named requests but when i install it says module requests-2.25.1 installed successfully. Anybody who can help with this?

i´m running macOScatalina and Python 3.9.
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
March 05, 2021, 10:59:54 PM
Last edit: March 06, 2021, 01:01:40 AM by frodocooper
 #10

Hello, this don't work with s9k, Restart the miner every so often, how do I contact you to pay for one that works?

Hello eeva1990. No need to pay me, you can donate if you wish but I will help you as a user regardless of your donation or not.

Can you send me some Logs? or screenshots? How often does it restart the miner? It will certainly restart the miner if it detects "accepted shares" are not increasing (and there is an internet connection).

You can P.M. me or use this thread.

Just send me screenshots of the program functioning (command line).



Please anyone who posts questions or troubleshooting requests send me the screenshot of the program output (what it prints on the command line). Cool

Hi, i´m trying to get this to work but i get this error: File "AntGuardian.py", line 17, in <module> import request - ImportError: No module named requests but when i install it says module requests-2.25.1 installed successfully. Anybody who can help with this?

i´m running macOScatalina and Python 3.9.

If you have multiple versions of Python, most of the time it has to do with that, you might have the requests package, or every package installed on another version of Python that the one you are running. Try uninstalling Python 3 and using Python 2.

Can you send me the logs or screenshots?
iwantmyhomepaidwithbtc
Copper Member
Member
**
Offline Offline

Activity: 76
Merit: 47


View Profile
May 17, 2021, 10:49:14 AM
Last edit: May 30, 2021, 08:18:57 PM by iwantmyhomepaidwithbtc
 #11

Hey there

It looks very interesting, thank you for this work !


I will test it on my  two Antminer R4.


For the S9k restarting problem, I can give an eye on it. I have a S9K running, I will do the test asap.


Have a nice day !



EDIT :

I've done the test. it works 100% perfectly with the Antminer R4! No problem with the 12 S9 my friend has too.

The test is 100% positive for my 2 S9k. 1 is always good and the other very unstable, so your software is like a gift, thank you !!!


Thank you OP, as a really pro open source software and long time debian user guy, I really appreciate your way of thinking
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
June 01, 2021, 02:58:38 PM
 #12

Hey there

It looks very interesting, thank you for this work !


I will test it on my  two Antminer R4.


For the S9k restarting problem, I can give an eye on it. I have a S9K running, I will do the test asap.


Have a nice day !



EDIT :

I've done the test. it works 100% perfectly with the Antminer R4! No problem with the 12 S9 my friend has too.

The test is 100% positive for my 2 S9k. 1 is always good and the other very unstable, so your software is like a gift, thank you !!!


Thank you OP, as a really pro open source software and long time debian user guy, I really appreciate your way of thinking


I'm always happy to meet others that think the same way!
Thank you for your feedback

I know there are many Antminer monitors out there, but one could argue none as simple and easy to audit as this one.

I Would love to bring support to other miner brands as they develop. Any developers would be appreciated

If anyone has an old unprofitable miner (not bitmain) that they can donate and send it to me to Miami, I could develop support for that brand. You can send me a PM or post it here and I will give you my address
iwantmyhomepaidwithbtc
Copper Member
Member
**
Offline Offline

Activity: 76
Merit: 47


View Profile
June 01, 2021, 05:06:29 PM
 #13


I'm always happy to meet others that think the same way!
Thank you for your feedback

I know there are many Antminer monitors out there, but one could argue none as simple and easy to audit as this one.

I Would love to bring support to other miner brands as they develop. Any developers would be appreciated

If anyone has an old unprofitable miner (not bitmain) that they can donate and send it to me to Miami, I could develop support for that brand. You can send me a PM or post it here and I will give you my address

All my miners are actually running, but I will DM you the phone number of a friend which would be maybe able to help you.
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
June 15, 2021, 08:24:39 PM
 #14

All my miners are actually running, but I will DM you the phone number of a friend which would be maybe able to help you.

Please do  Smiley

Help is very welcome in the areas of:
-Graphic design
-Python developers
-Miners
-Anyone who has benefited from monitoring your miners with AntGuardian, even if you have no skills you can contact me if you wish to help.
iwantmyhomepaidwithbtc
Copper Member
Member
**
Offline Offline

Activity: 76
Merit: 47


View Profile
June 17, 2021, 10:43:38 AM
 #15

DM sent
cedarfox
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 17, 2021, 03:18:51 AM
 #16

Hi, I found your software and I want to try it but I have a question.... How can I get it to scan devices from an IP range or list of IP addresses which is not my normal LAN. I want to have a computer run the program and connect to a VPN with miners on the VPN to monitor/scan? 

Thanks,
Mark
btc2marspro
Newbie
*
Offline Offline

Activity: 14
Merit: 5


View Profile
November 21, 2021, 06:03:36 AM
 #17

Great Spirit Cheesy  Wander, any unicorn mining farm's CTOs are professional enough to say, I did not code this but lets use this. Wander how many techs from the unicorn farms kiss the boss' butt and making them believe the enterprise is not so successful without the self written buggy tools. Wander if boss sees value in open source code.


FREE Open Source Antminer monitor and restart tool
For all of us reluctant to run proprietary software anywhare near our miners, let alone controlling them. Now we have an alternative!

Happy mining!
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
November 30, 2021, 07:46:09 PM
 #18

Hi, I found your software and I want to try it but I have a question.... How can I get it to scan devices from an IP range or list of IP addresses which is not my normal LAN. I want to have a computer run the program and connect to a VPN with miners on the VPN to monitor/scan? 

Thanks,
Mark

Hi Mark,
Just connect to the VPN in which your miners are connected, and run AntGuardian and it will work.
No need to do anything additional.
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
November 30, 2021, 08:06:19 PM
 #19

Great Spirit Cheesy  Wander, any unicorn mining farm's CTOs are professional enough to say, I did not code this but lets use this. Wander how many techs from the unicorn farms kiss the boss' butt and making them believe the enterprise is not so successful without the self written buggy tools. Wander if boss sees value in open source code.

Did you find a bug?
rsolano60 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 16


View Profile
June 01, 2023, 03:07:35 AM
Merited by mikeywith (4)
 #20

Looks interesting. I'd give it a try but I stopped using Bitmain miners several years ago in favor of far more reliable gear from Canaan.
Can it work with any miner that uses Kano's cgminer API?

Finally got my first Canaan miners. Porting AntGuardian to Canaan will only take a few lines of code.

Update comming soon.  Cool
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!