Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2796879
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: LINUX

2014-03-28 17:14:44

Here’s how to get it running:

  1. Install iptstate ( yum install iptstate or apt-get install iptstate )
  2. Grab  and import it via Zabbix GUI.
  3.  to /etc/zabbix/scripts
  4. Create  inside /etc/zabbix_agentd.conf.d
  5. service zabbix-agentd restart

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:

you must have a tty to run sudo

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终端。注释掉就可以在后台执行了。


 摘之:http://blog.portwd.com/sysadmin/monitoring-iptables-with-zabbix/



安装正常后,如图所示:

阅读(2748) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~