器量大者,福泽必厚
全部博文(587)
分类: LINUX
2014-03-28 17:14:44
Here’s how to get it running:
Next you need to authorize Zabbix user to run iptstate command (potentially without root’s password), because if you skip these edits you will end up with following error in your zabbix_agentd.log:
Open up your sudoers file and add:
zabbix ALL=NOPASSWD: /usr/sbin/iptstate
+ change Defaults requiretty to #Defaults requiretty
在配置过程中遇到问题如下:
sudo: sorry, you must have a tty to run sudo这个情况,其实修改一下sudo的配置就好了 ###使用不同账户,执行执行脚本时候sudo经常会碰到
vi /etc/sudoers (最好用visudo命令)
注释掉 Default requiretty 一行
#Default requiretty
意思就是sudo默认需要tty终端。注释掉就可以在后台执行了。
安装正常后,如图所示: