Smokeping, a network monitoring tool for Linux

Smokeping mainly monitors network performance, including regular ping, monitoring www server performance with echoping, monitoring dns query performance, monitoring ssh performance, etc. The bottom layer of Smokeping is supported by rrdtool, which is characterized by beautiful drawing, and network packet loss and delay are represented by colors and shadows. Smokeping consists of the following components: RRDtool, Fping, Echoping, Curl, Dig, SSh, Perl modules.
Although Smokeping can detect network performance, it is often not enough to detect network performance from a single node. Fortunately, smokeping provides the function of distributed detection of network performance, that is, the network status of a certain area can be detected from multiple nodes, which is what we want to see when monitoring the network. The bloggers do not discuss here, and interested bloggers can further study and research by visiting the official website of smokeping. This article only provides some valuable references and suggestions on how to install the smokeping tool under CentOS 5.8.
The specific installation steps are as follows:
1. Install the web service
yum install httpd
yum install httpd-devel
2. Install fping
# yum install fping
3. Install echoping
# yum install echoping
# yum install curl
4. Install CGI-SpeedyCGI
#wget http: //daemoninc.com/SpeedyCGI/CGI-SpeedyCGI-2.22.tar.gz
#tar -zxvf CGI-SpeedyCGI-2.22.tar.gz #cd
CGI-SpeedyCGI-2.22
#perl Makefile.PL
#make
#make test
#make install
5. Install rrdtool
1) Libraries that rrdtool depends on
#yum -y install libxml2-devel libpng-devel glib pango pango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpl libart_lgpl-devel
2) Install rrdtool
#wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.26.tar.gz
#tar -zxvf rrdtool-1.2.26.tar.gz #cd
rrdtool-1.2 .26
#./configure --prefix=/usr/local/rrdtool
#make
#make install
6. Install smokeping
#wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.2.tar.gz
#tar zxvf smokeping-2.4.2.tar.gz
#mv smokeping-2.4.2 /usr/local/smokeping
7. Configure smokeping
A) Create two directories:
#mkdir /usr/local/smokeping/cache
#mkdir /usr/local/smokeping/var
B) Modify the following configuration files:
(1) Configuration file /usr/local/smokeping/etc/config.dist
imgcache = /usr /local/smokeping/cache
imgurl = ../cache
datadir = /usr/local/smokeping/var
piddir = /usr/local/smokeping/var
cgiurl = http://smokeping.sso.cn/htdocs/smokeping.cgi
smokemail = /usr/local/smokeping/etc/smokemail.dist
tmail = /usr/local/smokeping/etc/tmail.dist
template = /usr/local/smokeping/etc/basepage.html.dist
Comment out the following configuration items:
# *** Slaves ***
#secrets=/usr/local/smokeping/etc/smokeping_secrets.dist
#+boomer
#display_name=boomer
#color=
0000ff #+slave2
(2)配置文件 /usr/local/smokeping/htdocs/smokeping.cgi
cp smokeping.cgi.dist smokeping.cgi //生成smokeping.cgi
#!/usr/bin/speedy -w
use lib qw(/usr/local/rrdtool/lib/perl);
use lib qw(/usr/local/smokeping/lib);
Smokeping::cgi("/usr/local/smokeping/etc/config.dist");
(3) 配置文件/usr/local/smokeping/bin/smokeping.dist
#!/usr/bin/perl -w
use lib qw(/usr/local/rrdtool/lib/perl);
use lib qw(/usr/local/smokeping/lib);
Smokeping::main("/usr/local/smokeping/etc/config.dist");
8、启动smokeping
/usr/local/smokeping/bin/smokeping.dist start
9、配置apache/conf/httpd.conf
DocumentRoot /usr/local/smokeping
ServerName smokeping.sso.cn
AddHandler cgi-script .cgi
AllowOverride None
Options ExecCGI Indexes
Order allow, deny
Allow from all
ErrorLog logs/ping-error_log
CustomLog logs/ping-access_log common
10. Restart apache service service httpd restart
11. Visit http://192.168.163.126/smokeping/smokeping.fcgi
Now we can use the smokeping service we just built to implement monitoring of our network.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327104391&siteId=291194637