Bitcoin Forum
May 10, 2024, 12:34:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Nagios check scripts for Antminer S7/S9  (Read 1877 times)
louiseth1 (OP)
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
1715344487
Hero Member
*
Offline Offline

Posts: 1715344487

View Profile Personal Message (Offline)

Ignore
1715344487
Reply with quote  #2

1715344487
Report to moderator
1715344487
Hero Member
*
Offline Offline

Posts: 1715344487

View Profile Personal Message (Offline)

Ignore
1715344487
Reply with quote  #2

1715344487
Report to moderator
1715344487
Hero Member
*
Offline Offline

Posts: 1715344487

View Profile Personal Message (Offline)

Ignore
1715344487
Reply with quote  #2

1715344487
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715344487
Hero Member
*
Offline Offline

Posts: 1715344487

View Profile Personal Message (Offline)

Ignore
1715344487
Reply with quote  #2

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

Activity: 686
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 (OP)
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:  

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