溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Cacti+Nagios(六):Cacti整合Ntop

發(fā)布時間:2020-05-06 00:42:28 來源:網(wǎng)絡(luò) 閱讀:1394 作者:月晴星飛 欄目:移動開發(fā)

Ntop是一種監(jiān)控網(wǎng)絡(luò)流量工具


1、安裝依賴軟件

[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

2、安裝Ntop

[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

3、配置Ntop

(1)為ntop的admin用戶設(shè)置密碼

[root@nagios ntop-4.1.0]# ntop -A
admin 123456

(2)啟動ntop

[root@nagios ntop-4.1.0]# ntop -i eth0 -d -L -u ntop

  eth0是你的監(jiān)控機用于捕獲網(wǎng)絡(luò)流量的網(wǎng)卡

(3)自動啟動

[root@nagios ntop-4.1.0]# echo 'ntop -i eth0 -d -L -u ntop &> /dev/null' >> /etc/rc.d/rc.local

(4)防火墻添加信任端口3000

[root@nagios ntop-4.1.0]# iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
[root@nagios ntop-4.1.0]# service iptables save

(5)訪問頁面

  http://localhost:3000

4、Cacti整合Ntop

[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中設(shè)置URL:http://localhost:3000


向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI