VeilleurTrytoFix / gpumonitor

Simple Template for zabbix to monitor GPU's on linux RIGS (ethos)
0 stars 1 forks source link

AMD GPU Monitoring for Zabbix on Ubuntu(ethos)

Template and script allow you to monitor multi gpu, tested on ubuntu 16.04, ETHOS.

Installation

#AMD GPU LINUX
UserParameter=gpu.discovery,/etc/zabbix/scripts/get_gpus_info.sh
UserParameter=gpu.temp[*],export DISPLAY=:0 && xhost + > /dev/null && amdconfig --adapter=$1 --odgt | grep 'Temperature' | cut -d'-' -f2 | cut -d'.' -f1 | tr -d ' '
UserParameter=gpu.utilization[*],export DISPLAY=:0 && xhost + > /dev/null  && amdconfig --adapter=$1 --odgc | grep 'GPU load' | cut -f1 -d'%' | cut -f2 -d':'| tr -d ' '
UserParameter=gpu.number,show stats | grep "gpus:" | tr -s ' ' | cut -d ' ' -f 2

Thanks to for source : https://github.com/plambe/zabbix-nvidia-smi-multi-gpu