I am currently trying to configure an item in zabbix to execute a check on a remote server via SSH. When I run the following command on the zabbix box it works
sudo -u zabbix ssh -t root@[remote_ip] 'sudo ls'
However when I run this
sudo -u zabbix ssh root@[remote_ip] 'sudo ls'
I get sudo: sorry, you must have a tty to run sudo
. I understand this is because I have not forced tty. My question is, how can I get the zabbix ssh.run item 'key' to force tty? Preferably, we'd rather not be making any updates to the remote host.