We added a custom template to get nvidia-smi specific output. But on zabbix server UI, its showing not supported with error as Value "sh: /usr/bin/nvidia-smi: Permission denied" of type "string" is not suitable for value type "Numeric (float)"
Above error is fixed when we set selinux to permissive but we don't want to change. We checked specific error in audit log file so we can apply security policy. But there is no such error. How can we fix without updating selinux policy?
Below parameters added in Zabbix agent conf file.
UserParameter=gpu.used,nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits -i 0
UserParameter=gpu.free,nvidia-smi --query-gpu=memory.free --format=csv,noheader,nounits -i 0
We are getting the correct value when we run zabbix_agentd -t <key_name> on agent.
Above error is fixed when we set selinux to permissive but we don't want to change. We checked specific error in audit log file so we can apply security policy. But there is no such error. How can we fix without updating selinux policy?
Below parameters added in Zabbix agent conf file.
UserParameter=gpu.used,nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits -i 0
UserParameter=gpu.free,nvidia-smi --query-gpu=memory.free --format=csv,noheader,nounits -i 0
We are getting the correct value when we run zabbix_agentd -t <key_name> on agent.
Comment