Jin
Jin

Reputation: 1

External Scripts connnecting miner to Zabbix getting zero data

I'm trying the external script here https://github.com/AndOr0812/zabbix-antminer And after I configured the scripts and proxy settings, I was keeping getting zero data, both in Zabbix and the commandline. I have done chmod 755 and disabled firewall. It shows "[107] Transport endpoint is not connected". Any ideas on what to check/debugg?

Upvotes: 0

Views: 569

Answers (1)

Walter A
Walter A

Reputation: 20032

Make sure antminer-zbx-chk is responsible for your problems:
When the script is replaced by echo 0, is the error message gone?

Look on internet for your error message, this seems to be a timeout value. On https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/8466-many-time_wait-connection/page2 in issue with getpeername is mentioned. Maybe look into that.

Look how long the external script takes:

time ./antminer-zbx-chk  <host> <port> <username> <password> <item>

When it takes more then 10 seconds you must look for an async solution. When it takes 1-10 you can consider an async solution.

Async: One job that fires the antminer in the background and returns before a result is given. Another job that takes a look at the result or even betterL Make a script calling antminer and use zabbix_sender when a result is found.

Upvotes: 0

Related Questions