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_antminerEnjoy!