Closed sevketozturk closed 2 years ago
@sevketozturk, did you find a solution to your issue?
Unfortunately I couldn't find it. The data is correct but I couldn't convert KBM to MB
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
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
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
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
<units>GB</units>
<value_type>0</value_type>
<multiplier>1</multiplier>
<formula>0.001</formula>
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
Closing this due to inactivity
Hi, I need help to understand and fix. when i run this command i see it as mb " sudo /usr/bin/nvidia-smi -L"
In the Zabbix scheme, the gpu memory information appears as kmb. How do I megabyte make
thanks a lot