In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to install and configure Smokeping". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Smokeping is a monitoring software for network performance monitoring, through which it can graphically display the network delay of its own company's IDC, such as delay, packet loss rate, BGP multiline, etc., and then can clearly judge the instant communication of the network.
I. install the software
1. Use the yum command to install the required tools (there are many dependent packages)
Yum install gcc freetype-devel zlib-devel libpng-devel libart_lgpl-devel httpd-devel apr-util-devel apr-devel cairo cairo-devel pango pango-devel libxml2 libxml2-devel perl-XML-Simple.noarch perl-Crypt-SSLeay perl-Digest-HMAC
two。 Install rrdtool
Wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.6.tar.gz
Tar zxvf rrdtool-1.3.6.tar.gz
Cd rrdtool-1.3.6
. / configure-- disable-tcl
Make
Make install
3. Install cgilib
Wget http://down1.chinaunix.net/distfiles/cgilib-0.5.tar.gz
Tar zxvf cgilib-0.5.tar.gz
Cd cgilib-0.5
Make
Cp libcgi.a / usr/local/lib
Cp cgi.h / usr/include
4. Install fping
Wget http://fping.sourceforge.net/download/fping.tar.gz
Tar zxvf fping.tar.gz
Cd fping-2.4b2_to
. / configure
Make
Make check
Make install
5. Install echoping
Wget http://jaist.dl.sourceforge.net/project/echoping/echoping/6.0.0/echoping-6.0.0.tar.gz
Tar zxvf echoping-6.0.0.tar.gz
Cd echoping-6.0.0
. / configure
Make
Make test
Make install
6. Install CGI-SpeedyCGI
Wget ftp://195.220.108.108/linux/epel/5/x86_64/mod_speedycgi-2.22-4.el5.x86_64.rpm
Wget ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/x86_64/perl-CGI-SpeedyCGI-2.22-4.el5.x86_64.rpm
Rpm-ivh-force perl-CGI-SpeedyCGI-2.22-4.el5.x86_64.rpm
Rpm-ivh mod_speedycgi-2.22-4.el5.x86_64.rpm
Wget http://mirrors.163.com/cpan/authors/id/H/HO/HORROCKS/CGI-SpeedyCGI-2.22.tar.gz
Tar zxvf CGI-SpeedyCGI-2.22.tar.gz
Cd CGI-SpeedyCGI-2.22
Perl Makefile.PL
Select the default option (no) when you encounter problems
Make
Make test
Make install
7. Install smokeping
Wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.3.6.tar.gz
Tar zxvf smokeping-2.3.6.tar.gz
Mv smokeping-2.3.6 / usr/local/smokeping
Cd / usr/local/smokeping
II. Configure smokeping
1. Modify file name
Modify smokeping.dist under / usr/local/smokeping/bin
Cp smokeping.dist smokeping
Modify basepage.html.dist,config.dist,smokemail.dist under etc/
Cp basepage.html.dist basepage.html
Cp config.dist config
Cp smokemail.dist smokemail
Chmod 600 smokeping_secrets.dist
Modify smokeping.cgi.dist under htdoc/
Cp smokeping.cgi.dist smokeping.cgi
two。 Modify the configuration file
Configure bin/smokeping
Vi / usr/local/smokeping/bin/smokeping
In this file, we need to modify the path of the first two lib and the later config files.
The two lib are smokeping's lib and rrdtool's lib (red is the modified content)
#! / usr/sepp/bin/perl-5.8.4-w
#! / usr/bin/perl-w
Use lib qw (/ usr/pack/rrdtool-1.2.23-mo/lib/perl)
Use lib qw (/ usr/local/rrdtool-1.3.6/lib/perl)
Use lib qw (lib)
Use lib qw (/ usr/local/smokeping/lib)
Use Smokeping 2.003006
Smokeping::main ("etc/config.dist")
Smokeping::main ("/ usr/local/smokeping/etc/config")
Configure htdocs/smokeping.cgi in the same way as above
Vi / usr/local/smokeping/htdocs/smokeping.cgi
************************
#! / usr/sepp/bin/speedy-w
#-*-perl-*-
#! / usr/bin/speedy-w
#-*-perl-*-
# use lib qw (/ usr/pack/rrdtool-1.0.33-to/lib/perl)
Use lib qw (/ usr/local/rrdtool-1.3.6/lib/perl/)
# use lib qw (/ home/oetiker/data/projects/AADJ-smokeping/dist/lib)
Use lib qw (usr/local/smokeping//lib)
Use Smokeping 2.003006
Smokeping::cgi ("/ home/oetiker/data/projects/AADJ-smokeping/dist/etc/config")
Smokeping::cgi ("/ usr/local/smokeping/etc/config")
Configure etc/config
Vi usr/local/smokeping/etc/config replaces the following lines with the path to the relevant software that has been installed
* General * *
Imgcache = / home/oetiker/public_html/smokeping-ms/cache
Imgcache = / usr/local/smokeping/htdocs/cache
Imgurl = cache
Imgurl = cache
Datadir = / tmp/smokeping-ms/data
Datadir = / usr/local/smokeping/var
Piddir = / tmp/smokeping-ms/var
Piddir = / usr/local/smokeping/var
Cgiurl = http://some.url/smokeping.cgi
Cgiurl = http:// native IP/htdocs/smokeping.cgi
Smokemail = / home/oetiker/checkouts/smokeping/trunk/software/etc/smokemail.dist
Smokemail = / usr/local/smokeping/etc/smokemail
Tmail = / home/oetiker/checkouts/smokeping/trunk/software/etc/tmail.dist
Tmail = / usr/local/smokeping/etc/tmail.dist
* Presentation * *
Template= / home/oetiker/checkouts/smokeping/trunk/software/etc/basepage.html.dist
Template = / usr/local/smokeping-2.3.6/etc/basepage.html
* Probes * *
+ FPing
Binary = / usr/sbin/fping
Binary = / usr/local/sbin/fping
# * * Database * *
Step = 60
Pings = 10
Modify the frequency of ping. The default is 300 seconds ping20 times. We can adjust it as needed. Here, change it to 60 seconds ping 10 times.
* Targets * *
# = =
# this is used to configure monitoring targets, with + sign layering, + as the home page, and + as the sublayer. We take Baidu and Sohu as examples.
+ TEST
Menu= TEST
Title = TEST
+ + baidu
Menu = baidu
Title = baidu
Host = 115.239.210.27
+ + sohu
Menu = sohu
Title = sohu
Host = 121.14.0.97
# = =
3. Add Catalog
Set up the following three directories to store smokeping data, etc.
Mkdir / usr/local/smokeping/data
Mkdir / usr/local/smokeping/var
Mkdir / usr/local/smokeping/htdocs/cache
Chown-R apache:apache / usr/local/smokeping
4. Modify apache configuration file
Vi / etc/httpd/conf/httpd.conf
Add the following:
Alias / smokeping/ "/ usr/local/smokeping/htdocs/"
Alias / cache/ "/ usr/local/smokeping/cache/"
Options FollowSymLinks ExecCGI
AllowOverride None
AddHandler cgi-script cgi
Order allow,deny
Allow from all
Three. Start
1. Restart apache
Service httpd restart
two。 Restart smokeping
/ usr/local/smokeping/bin/smokeping restart
Done.
This is the end of "how to install and configure Smokeping". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.