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

Value should be a JSON object. #6

Closed Ro1han closed 5 years ago

Ro1han commented 6 years ago

below is my output from server: image

in the zabbix UI, where shows "Value should be a JSON object."

plambe commented 6 years ago

Please elaborate. Here's a screenshot from a machine, on which this template works as expected:

image

Ro1han commented 6 years ago

Hi issue was caused by sudo permission, get_gpus_info.sh scripts should be put in sudoers file

Ro1han commented 6 years ago

I fixed issue in centos, but ubuntu it's still having issue image

plambe commented 6 years ago

Hi,

Can you put your zabbix client in debug mode? Add (or edit it if you already have it) the following line in your zabbix agent configuration file:

DebugLevel=4

After you do that, check your log for a line like:

   852:20180901:094521.647 EXECUTE_STR() command:'/home/miner/XXXXXXXXXXXX/get_gpus_info.sh' len:325 cmd_result:'{

What I want to see to be able to help you, when everything works, looks like:

   852:20180901:094521.647 EXECUTE_STR() command:'/home/miner/XXXXXXXXXXXX/get_gpus_info.sh' len:325 cmd_result:'{
"data":[
{"{#GPUIN'
   852:20180901:094521.647 Sending back [{
"data":[
{"{#GPUINDEX}":"0", "{#GPUUUID}":"GPU-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"},
{"{#GPUINDEX}":"1", "{#GPUUUID}":"GPU-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"},
{"{#GPUINDEX}":"2", "{#GPUUUID}":"GPU-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"},
{"{#GPUINDEX}":"3", "{#GPUUUID}":"GPU-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"}
]
}]

So I want to know what would be different with your setup in this output.

I used a command like the following to see what I copied above without too much spam:

tail -10000 /var/run/zabbix/zabbix_agentd.log | grep -i gpu.discovery -A 20 -B 10
plambe commented 6 years ago

One more thing, you said:

I fixed issue in centos [..]

I'm curious, what was the issue and what was the fix?

plambe commented 5 years ago

Closing this due to lack of any feedback