plambe / zabbix-nvidia-smi-multi-gpu

A zabbix template using nvidia-smi. Works with multiple GPUs on Windows and Linux.
Other
94 stars 53 forks source link

GPU Total Memory KMB #13

Closed sevketozturk closed 2 years ago

sevketozturk commented 3 years ago

Hi, I need help to understand and fix. when i run this command i see it as mb " sudo /usr/bin/nvidia-smi -L"

image

In the Zabbix scheme, the gpu memory information appears as kmb. How do I megabyte make

image

image

image

thanks a lot

plambe commented 3 years ago

@sevketozturk, did you find a solution to your issue?

sevketozturk commented 3 years ago

Unfortunately I couldn't find it. The data is correct but I couldn't convert KBM to MB

RichardKav commented 3 years ago

In the zabbix documentation it suggests:

Use “!requests/s” to prevent “Krequests/s” to appear. Perhaps you could do something similar.

(See: https://www.zabbix.com/documentation/guidelines/thosts)

In general it appears to be an error with the preprocessing of unit symbols that is described here:

https://www.zabbix.com/documentation/current/manual/appendix/suffixes

RichardKav commented 3 years ago

I'd also recommend looking at the units for the input command and see if they are correct:

i.e.

nvidia-smi --query-gpu=memory.total --format=csv,noheader,nounits -i 0

RichardKav commented 3 years ago

I suspect thinking about this further that the Units should be "B" which will automatically convert to the MB if required. or "!MB" if preferred.

The use of a "custom multiplier" can also be used if the input size is not in bytes.

https://www.zabbix.com/documentation/2.0/manual/config/items/item also see more update docs: https://www.zabbix.com/documentation/current/manual/config/items/item

j2322 commented 3 years ago

Thanks @RichardKav

In the GUI (for 5.x):

"Configuration" -> "Templates" -> "Template Nvidia GPUs Performance" -> "Discovery" -> "Item Prototypes" -> "GPU {#GPUINDEX} Memory *"

Or you can change the xml before importing into the server. Starting in the item_prototype section for memory items

jason-m commented 3 years ago

I updated the template so that the units are correct and submited a merge request in the mean time you can fetch the updated XML from my fork if you like https://github.com/jason-m/zabbix-nvidia-smi-multi-gpu

plambe commented 2 years ago

Closing this due to inactivity