Closed Ro1han closed 5 years ago
Please elaborate. Here's a screenshot from a machine, on which this template works as expected:
Hi issue was caused by sudo permission, get_gpus_info.sh scripts should be put in sudoers file
I fixed issue in centos, but ubuntu it's still having issue
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
One more thing, you said:
I fixed issue in centos [..]
I'm curious, what was the issue and what was the fix?
Closing this due to lack of any feedback
below is my output from server:
in the zabbix UI, where shows "Value should be a JSON object."