Post
Topic
Board Mining (Altcoins)
Re: [OS] nvOC easy-to-use Linux Nvidia Mining v0017
by
Maxximus007
on 14/07/2017, 09:04:03 UTC
I will release v0018 soon.  Currently you must reimage to upgrade; I will add an updater in a later version.

Hi fullzero, add please to v0018 a monitoring agent for zabbix.
Here https://pastebin.com/raw/pXDwWiS3 is the configuration file zabbix_agentd.conf

I created the necessary metrics for 10 GPUs.
The agent will send the metrics to the server with the IP Address 192.168.10.100
I'll try to add a customization guide.

Briefly: I take the Temrature and the hash from the Claymore
The power consumption of the GPU from the utility nvidia-smi

The result of the metrics is this:
curl -s http://localhost:3333 | sed '/GPU/!d; /Mh/!d;' | awk '{print $13}' | awk 'NR == 1'
curl -s http://localhost:3333 | sed '/Total/!d; /Speed/!d;' | awk '{print $6}' | awk 'NR == 3'
curl -s  http://localhost:3333 | awk '/t=/ {print $12}' | tr -d t=C | awk 'NR == 1'
nvidia-smi | grep % | awk '{print $5}' | tr -d W | awk 'NR==4'


My dashboard: https://photouploads.com/image/Bv1


PS: You need to install the latest package zabbix_agentd 3.2.6

wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
sudo dpkg -i zabbix-release_3.2-1+xenial_all.deb

sudo apt-get update
sudo apt-get install zabbix-agent

Thank you, and sorry for my english.


Was already 50% complete with v0018 upload when I saw this.  Can you give me the link to the zabbix source code?

This looks interesting.

https://www.zabbix.com/download
https://github.com/zabbix
Zabbix is really nice, perhaps we can find a way to set up profiles depending on the miner used.

Some parts can become a bit more miner agnostic, Temperature can be:
Code:
UserParameter=Temp0, /usr/bin/nvidia-smi -i 0 --query-gpu=temperature.gpu --format=csv,noheader,nounits

For the Watt part you can consider to change to:
Code:
UserParameter=Watt0, /usr/bin/nvidia-smi -i 0 --query-gpu=power.draw --format=csv,noheader,nounits

The pag is already pretty full, but perhaps the fan speed can be of interest (in relation to power draw and temperature):
Code:
UserParameter=Fan0, /usr/bin/nvidia-smi -i 0 --query-gpu=fan.speed --format=csv,noheader,nounits

According to nvidia-smi documentation, setting nvidia-smi -pm 1 will speed up nvidia-smi output.

For EWBF Miner we can use the following, but it needs the (tiny) package jq https://stedolan.github.io/jq/
So first:
Code:
sudo apt install jq

And in the Zabbix config file (I'm running EWBF with --api=0.0.0.0:3333 to keep ports the same as Claymore):
Code:
UserParameter=GPU0, /usr/bin/curl 127.0.0.1:3333 -X '{"id":"0", "method":"getstat"}' | jq -r '.result[0].speed_sps'

The result[ x ] value needs to correspond with the GPU id.