Smokeping is a monitoring software for network performance monitoring, it can be in its own company IDC network situation, such as delay, packet loss, whether BGP multi-line, and so on, through the RRDtool mapping mode, graphically show the network delay, and then can clearly determine the network of instant communication,
Smokeping needs multiple package support, let's install one at a time, there are two ways to install through Yum and compilation. (Have built-in Yum package direct yum, no compile installation)
Yum install-y perl perl-net-telnet perl-net-dns perl-ldap Perl-libwww-perl perl-io-socket-ssl Perl-Socket6 Perl-time-hires perl-extutils-makemaker rrdtool Rrdtool-perl Curl httpd httpd-devel gcc make wget libxml2-devel Evel glib Pango pango-devel freetype freetype-devel fontconfig Cairo cairo-devel LIBART_LGPL Libart_lgpl-devel
Download fping and compile:
wget http://fping.org/dist/fping-3.10.tar.gz
After decompression, direct configure && make && make install
Download echoping and compile the installation:
wget http://jaist.dl.sourceforge.net/project/echoping/echoping/6.0.2/echoping-6.0.2.tar.gz
Yum Install-y popt
Yum install-y libidn (Installation of two echoping-dependent packages)
After decompression, direct configure && make && make install
Download smokeping
http://download.csdn.net/download/fairplay_li/8711829
Decompression; CD smokeping-2.6.9
./setup/build-perl-modules.sh/usr/local/smokeping/thirdparty
./configure--prefix=/usr/local/smokeping
/usr/bin/gmake Install
The following starts configuration smokeping
cd/usr/local/smokeping/
mkdir cache data var
touch/var/log/smokeping.log
chown apache:apache Cache data var
chown apache:apache/var/log/smokeping.log
chmod 600/usr/local/smokeping/etc/smokeping_secrets.dist
cd/usr/local/smokeping/htdocs
mv smokeping.fcgi.dist smokeping.fcgi
cd/usr/local/smokeping/etc
Vim Config
Major changes to the following content:
Cgiurl = http://some.url/smokeping.cgi
Database * * * * step = 300 The proposed change to 60, one-minute data collection
Vim/etc/httpd/conf/httpd.conf
Add the following:
Alias/cache "/usr/local/smokeping/cache/"
alias/cropper "/usr/local/smokeping/htdocs/cropper/"
Alias/ Smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"
<directory "/usr/local/smokeping" >
allowoverride None
Options all
AddHandler cgi-script. fcgi. CGI order
Allow,deny
allow
from all DirectoryIndex smokeping.fcgi
</Directory>
If you need to support Chinese, you need to install the Chinese encoding:
Yum-y Install Wqy-zenhei-fonts.noarch
vim/usr/local/smokeping/lib/smokeping/graphs.pm
My ($graphret, $xs, $ys) = Rrds::graph
("Dummy",
'--start ', $tasks [0][1],
'--end ', $tasks [0][2],
After adding '--font title:20: ' Wenquanyi Zen Hei Mono ',
Set power-on start echo "/usr/local/smokeping/bin/smokeping--logfile=/var/log/smokeping.log 2>&1 &" >>/etc/ Rc.local
Monitor Source IP Library, fill in config
+ Other
menu = Three major network monitoring
title = Monitoring Statistics
++ dianxin
menu = Telecom Network Monitoring
title = Telecom Network Monitoring List
host = / Other / dianxin / dianxin-bj / Other / dianxin / dianxin-hlj / Other / dianxin / dianxin-tj / Other / dianxin / dianxin-sc / Other / d
ianxin / dianxin-sh / Other / dianxin / dianxin-gz
+++ dianxin-bj
menu = Beijing Telecom
title = Beijing Telecom
alerts = someloss
host = 202.96.199.133
+++ dianxin-hlj
menu = Heilongjiang Telecom
title = Heilongjiang Telecom
alerts = someloss
host = 219.147.198.242
+++ dianxin-tj
menu = Tianjin Telecom
title = Tianjin Telecom
alerts = someloss
host = 219.150.32.132
+++ dianxin-sc
menu = Sichuan Telecom
title = Sichuan Telecom
alerts = someloss
host = 61.139.2.69
+++ dianxin-sh
menu = Shanghai Telecom
title = Shanghai Telecom
alerts = someloss
host = 116.228.111.118
+++ dianxin-gz
menu = Guangdong Telecom
title = Guangdong Telecom
alerts = someloss
host = 113.111.211.22
++ liantong
menu = Unicom Network Monitoring
title = Unicom network monitoring list
host = / Other / liantong / liantong-bj / Other / liantong / liantong-hlj / Other / liantong / liantong-tj / Other / liantong / liantong-sc
/ Other / liantong / liantong-sh / Other / liantong / liantong-gz
+++ liantong-bj
menu = Beijing Unicom
title = Beijing Unicom
alerts = someloss
host = 61.135.169.121
+++ liantong-hlj
menu = Heilongjiang Unicom
title = Heilongjiang Unicom
alerts = someloss
host = 202.97.224.69
+++ liantong-tj
menu = Tianjin Unicom
title = Tianjin Unicom
alerts = someloss
host = 202.99.96.68
+++ liantong-sc
menu = Sichuan Unicom
title = Sichuan Unicom
alerts = someloss
host = 119.6.6.6
+++ liantong-sh
menu = Shanghai Unicom
title = Shanghai Unicom
alerts = someloss
host = 210.22.84.3
+++ liantong-gz
menu = Guangdong Unicom
title = Guangdong Unicom
alerts = someloss
host = 221.5.88.88
++ yidong
menu = Mobile network monitoring
title = Mobile Network Watch List
host = / Other / yidong / yidong-bj / Other / yidong / yidong-hlj / Other / yidong / yidong-tj / Other / yidong / yidong-sc / Other / yidong / yi
dong-sh / Other / yidong / yidong-gz
+++ yidong-bj
menu = Beijing Mobile
title = Beijing Mobile
alerts = someloss
host = 221.130.33.52
+++ yidong-hlj
menu = Heilongjiang Mobile
title = Heilongjiang Mobile
alerts = someloss
host = 211.137.241.35
+++ yidong-tj
menu = Tianjin Mobile
title = Tianjin Mobile
alerts = someloss
host = 211.137.160.5
+++ yidong-sc
menu = Sichuan Mobile
title = Sichuan Mobile
alerts = someloss
host = 218.201.4.3
+++ yidong-sh
menu = Shanghai Mobile
title = Shanghai Mobile
alerts = someloss
host = 117.131.19.23
+++ yidong-gz
menu = Guangdong Mobile
title = Guangdong Mobile
alerts = someloss
host = 211.136.192.6