Ad Widget

Collapse

Getting permission denied while running nvidia-smi command through custom template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nilban
    Junior Member
    • Jan 2020
    • 1

    #1

    Getting permission denied while running nvidia-smi command through custom template

    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.
  • 234233214
    Junior Member
    • Nov 2022
    • 15

    #2
    nilban did you manage to fix this issue? can you share the fix here?

    Comment

    Working...