V
V
Vladislav M2020-06-09 19:04:25
SSH
Vladislav M, 2020-06-09 19:04:25

How to get data from esxi 6.7 via ssh without root rights?

Good time.
There is a task: to take the statuses of disks from esxi to zabbix.
As a solution, use the zabbix ssh client to execute the polling script, for example:

esxcli storage core device smart get -d t10.ATA_____Samsung_SSD_850_EVO_mSATA_500GB_________S247NXAGB01177X_____ | grep 'Health Status' | awk '{print $3}'

Everything works and "OK" arrives in Zabbix.
Question: how to restrict the SSH user in the rights to esxi? the read only group is not allowed on ssh, and giving administrator a bad idea.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question