Hey I'm using nvsmi to get the gpu utilization on my clientmachine. I created a .bat script with following code and added it via Advanced EXE/XML Sensor
@echo off
echo ^<?xml version="1.0" encoding="Windows-1252" ?^>
echo ^<prtg^>
echo ^<result^>
echo ^<channel^>GPU0 Power Draw^</channel^>
echo ^<float^>1^</float^>
echo ^<value^>
echo "C:\Program files\NVIDIA Corporation\NVSMI\nvidia-smi.exe" --query-gpu=utilization.gpu --format="csv,nounits,noheader"
echo ^</value^>
echo ^</result^>
echo ^</prtg^>
The Command "C:\Program files\NVIDIA Corporation\NVSMI\nvidia-smi.exe" --query-gpu=power.draw --format="csv,nounits,noheader" returns a float value, like 86.3 if I paste it in cmd. But in PRTG in returns 0# as a value. It happens if I use --query-gpu=power.draw, or --query-gpu=temperature.gpu as a parameter for nvsmi too. so I guess there's a formatting error in my sensor code.
Add comment