Bitcoin Forum
September 19, 2018, 11:53:15 AM *
News: ♦♦ Bitcoin Core users must update to 0.16.3 [Torrent]. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Nagios check scripts for Antminer S7/S9  (Read 1779 times)
louiseth1
Legendary
*
Offline Offline

Activity: 938
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
1537357995
Hero Member
*
Offline Offline

Posts: 1537357995

View Profile Personal Message (Offline)

Ignore
1537357995
Reply with quote  #2

1537357995
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
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: 938
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:  

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!