Last time we talked about Monitoring GPU Performance on Windows via PRTG and OpenHardwareMonitor. Today I would like to introduce the possibility to do this with NVIDIA’s smi.
The NIVIDIA System Management Interface is a small command line tool. You can find it here:
C:\Program files\NVIDIA Corporation\NVSMI\nvidia-smi.exe. As PRTG needs a very specific output, smi needs to generate a very specific output. In fact: just the unit of the utilisation.
This can be done with these parameters:
So now smi ouputs the current gpu utilisazation of the GPU with the ID $ID. The rest is pretty simple: we provide our credentials to the script and execute the command remotely via Invoke-Command. In addition I built a loop for the command, because most of the render server provide more than one GPU. So with this loop we’ll get the correct amout and value of all provided GPUs. We’ll also provide the result in the specific scheme for a PRTG custom EXE/XML sensor. So we’re able to use only one sensor and every GPU gets its own sensor. Here we go:
The parameters for the custom sensor are the same than last time:
'%host' '%windowsuser' '%windowspassword' '%windowsdomain'