Bitcoin Forum
January 22, 2019, 05:16:50 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Nagios check scripts for Antminer S7/S9  (Read 1785 times)
louiseth1
Legendary
*
Offline Offline

Activity: 924
Merit: 1000


Bitfarms.io


View Profile WWW
October 23, 2016, 09:14:09 AM
 #1

Greetings everyone.

Here is a couple of scripts I made back then to add the ability to nagios infrastructures to monitor antminer devices. It's been tested on a large deployment of S7's without any issues. Basically any device that has similar outputs to cgminer-api running on port 4080 will be compatible.

Those scripts are perfdata enabled so everyone out there who generates graphs from their nagios instances (either through custom graphite environment or pnp4nagios) will be able to generate graphs for the statistics colleted by these scripts.

In order to generate multiple graphs I had made all checks as separate scripts. Also take note these scripts could be easily modified to monitor other types of cgminer compatible devices.

The scripts can check the following attributes:
- Check amount of blades detected
- Check amount of chips detected
- Check fan speeds
- Check hashrate (using the average hashrate, the hash5s (the "live" one) did fluctuate a lot on S7's)
- Check hardware errrors
- Check share rates
- Check temperature

Requirements: Those scripts rely on the use of nc (aka netcat) to poll the api port.

You can view the source and acquire these scripts on our repo:
https://bitbucket.org/hashrate/check_antminer

Enjoy!

Bitfarms.io - Powering Blockchains with Sustainable Energy
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1548134210
Hero Member
*
Offline Offline

Posts: 1548134210

View Profile Personal Message (Offline)

Ignore
1548134210
Reply with quote  #2

1548134210
Report to moderator
1548134210
Hero Member
*
Offline Offline

Posts: 1548134210

View Profile Personal Message (Offline)

Ignore
1548134210
Reply with quote  #2

1548134210
Report to moderator
icanscript
Hero Member
*****
Offline Offline

Activity: 700
Merit: 502



View Profile
November 05, 2016, 02:10:38 AM
 #2

This is great.

I use Nagios for simple monitoring and some SNMP stuff for networking equipment but never thought to use it for this. I have some friends that will be very pleased Cheesy

Thank You!
fanatic26
Hero Member
*****
Offline Offline

Activity: 756
Merit: 560


View Profile
November 09, 2016, 09:24:41 PM
 #3

When you say large deployment what kind of numbers are you talking? I have found on these forums a 'large deployment' can mean only 20 miners.

Stop buying industrial miners, running them at home, and then complaining about the noise.
louiseth1
Legendary
*
Offline Offline

Activity: 924
Merit: 1000


Bitfarms.io


View Profile WWW
November 15, 2016, 07:41:04 AM
 #4

When you say large deployment what kind of numbers are you talking? I have found on these forums a 'large deployment' can mean only 20 miners.

Was referring to over 800 miners.

Bitfarms.io - Powering Blockchains with Sustainable Energy
Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!