Author

Topic: Nagios check scripts for Antminer S7/S9 (Read 1877 times)

legendary
Activity: 924
Merit: 1000
Bitfarms.io
November 15, 2016, 03: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.
hero member
Activity: 756
Merit: 560
November 09, 2016, 05: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.
hero member
Activity: 686
Merit: 502
November 04, 2016, 10:10:38 PM
#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!
legendary
Activity: 924
Merit: 1000
Bitfarms.io
October 23, 2016, 05: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!
Jump to: