Article title: Configure SmokePing network monitoring. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
RHEL-5.3
========================================================== ================================
[Actual needs]
As a website company, we usually require the IT department to provide IDC network speeds across the country? Quality? Stability and so on?
What is the network condition of the test server provided by the ISP or agent for us to test the IDC?
For example, if a windows server has a record testing tool, ping the IP address of the information port or backbone network in each region during peak hours; finally, the average value and packet loss rate of ping data within the specified period are analyzed and calculated;
========================================================== =============================== SmokePing
[Introduction to Smokeping]
It is the work of Tobi Oetiker, creator of rrdtool. Therefore, it has great advantages in graphic display and is also a distinctive opensource tool:
Multiple detection methods, including fping, echoping, dig, and curl;
Easy to use and scalable plug-ins;
Master/slave, which can collect data from the same monitoring site on multiple nodes;
Alert settings are not just a simple set of thresholds.
========================================================== ================================
System configuration RHEL-5.3]
Disable firewall
# Service iptables stop
Flushing firewall rules: [OK]
Setting chains to policy ACCEPT: filter [OK]
Unloading iptables modules: [OK]
Disable selinux
# System-config-selinux
Or
# Setenforce 0
Or
# Vi/etc/sysconfig/selinux
Set SELINUX = enforcing
Change to SELINUX = disabled
Effective after restart
========================================================== ================================
[Install related software]
Smokeping is a program written in perl, so it does not need to be installed. However, he needs to use some tools and perl modules, as well as rrdtool, fping, and echoping, which must be installed in advance. When smokeping is started, it will also check whether the program to be used can be found.
I have configured yum:
# Yum install gcc
# Yum install freetype-devel
# Yum install zlib-devel
# Yum install libpng-devel
# Yum install libart_lgpl-devel
# Yum install httpd-devel
# Yum install apr-util-devel
# Yum install apr-devel
# Yum install perl *
# Yum install gcc freetype-devel zlib-devel libpng-devel libart_lgpl-devel httpd-devel apr-util-devel apr-devel freetype libart_lgpl libpng zlib perl *
In addition to the above rpm packages, you also need to manually install the following packages.
[Rrdtool] [cgilib] [fping-2.4b2_to] [echoping] [CGI-SpeedyCGI-2.22] [smokeping]
========================================================== ================================
Rrdtool]
Rrdtool depends on the following programs
# Yum install freetype
# Yum install libart_lgpl
# Yum install libpng
# Yum install zlib
# Yum install freetype libart_lgpl libpng zlib
# 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
----------------------------------------------------------------
Config is DONE!
With mmap io: yes
Build rrd_getopt: no
Static programs: no
Perl Modules: perl_piped perl_shared
Perl Binary:/usr/bin/perl
Perl Version: 5.8.8
Perl Options: PREFIX = $(DESTDIR)/usr/local/rrdtool-1.3.6 LIB = $(DESTDIR)/usr/local/rrdtool-1.3.6/lib/perl/5.8.8
Ruby Modules:
Ruby Binary: no
Ruby Options: sitedir = $ (DESTDIR)/usr/local/rrdtool-1.3.6/lib/ruby
Build Tcl Bindings: no
Build Python Bindings: yes
Build rrdcgi: yes
Build librrd MT: yes
Link with libintl: yes
Libraries:-lxml2-lcairo-lm-lcairo-lpng12-lpangocairo-1.0-lpango-1.0-lcairo-lgobject-2.0-ldl-lgmodule-2.0
Type 'make' to compile the software and use 'make install'
Install everything to:/usr/local/rrdtool-1.3.6.
... That wishlist is no joke. If you find RRDtool useful
Make me happy. Go to http://tobi.oetiker.ch/wish and
Place an order.
-- Tobi Oetiker
----------------------------------------------------------------
# Make
# Make install
# Whereis rrdtool
Rrdtool:/usr/local/rrdtool
Then run cd .. to return the Directory of the installation package.
========================================================== ================================
[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
[1] [2] [3] [4] Next page