zl程序教程

您现在的位置是:首页 >  其它

当前栏目

Cacti+Nagios(六):Cacti整合Ntop

整合 Nagios Cacti ntop
2023-06-13 09:15:50 时间
[root@nagios ~]# cd /home/nagios [root@nagios nagios]# yum install libtool libpcap libpcap-devel gdbm gdbm-devel zlib zlib-devel [root@nagios nagios]# wget http://mirror01.idc.hinet.net/EPEL/5Server/x86_64/GeoIP-1.4.8-1.el5.x86_64.rpm [root@nagios nagios]# wget http://mirror01.idc.hinet.net/EPEL/5Server/x86_64/GeoIP-devel-1.4.8-1.el5.x86_64.rpm [root@nagios nagios]# yum -y  nogpgcheck localinstall GeoIP-*.el5.x86_64.rpm [root@nagios nagios]# yum -y  nogpgcheck localinstall ettercap-*.rpm
[root@nagios nagios]# useradd -M -s /sbin/nologin -r ntop [root@nagios nagios]# wget http://down1.chinaunix.net/distfiles/ntop-4.1.0.tar.gz [root@nagios nagios]# tar zxvf ntop-4.1.0.tar.gz [root@nagios nagios]# cd ntop-4.1.0 [root@nagios ntop-4.1.0]# ./autogen.sh [root@nagios ntop-4.1.0]# make [root@nagios ntop-4.1.0]# make install [root@nagios ntop-4.1.0]# chown -R ntop:ntop /usr/local/share/ntop [root@nagios ntop-4.1.0]# chown -R ntop:root /usr/local/var/ntop
[root@nagios ntop-4.1.0]# echo  ntop -i eth0 -d -L -u ntop   /dev/null    /etc/rc.d/rc.local
[root@nagios ntop-4.1.0]# iptables -I INPUT -p tcp  dport 3000 -j ACCEPT [root@nagios ntop-4.1.0]# service iptables save
[root@nagios ntop-4.1.0]# cd /home/nagios [root@nagios nagios]# wget http://docs.cacti.net/_media/plugin:ntop-v0.2-1.tgz [root@nagios nagios]# mv plugin:ntop-v0.2-1.tgz ntop-v0.2-1.tgz [root@nagios nagios]# tar zxvf ntop-v0.2-1.tgz -C /var/www/html/cacti/plugins/ [root@nagios nagios]# vi  /var/www/html/cacti/include/config.php $plugins[] =  ntop

在Plugin Management 中install和enable插件

在User Management中勾上View Ntop

在Settings、Misc中设置URL:http://localhost:3000

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/56315.html

iptablesphp