Problem:

root@host# LC_ALL=C su -m zabbix -c "ping ya.ru"
ping: icmp open socket: Operation not permitted
Solution:
sudo chmod u+s `which ping`

Problem:

sudo: sorry, you must have a tty to run sudo
Solution:
echo 'Defaults:zabbix !requiretty' | sudo tee -a /etc/sudoers.d/zabbix

Problem:

sudo: no tty present and no askpass program specified
Solution:
echo 'zabbix ALL=NOPASSWD:/usr/bin/nmap *' | sudo tee -a /etc/sudoers.d/zabbix

Comments

comments powered by Disqus