smokeping Deployment of maintenance tools

Source: Internet
Author: User
Tags cairo rrdtool install perl smokeping

Recently the company's new engine room relocation, the need to test the network performance between the new engine room and the computer room, selected smokeping This network performance testing tool, deployment of the time reference to many articles on the Internet, the deployment steps are recorded as follows:

1. Install other sources

RPM-UVH http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

2, installing rrdtool and dependent libraries

yum -y install perl perl-net-telnet perl-net-dns perl-ldap  perl-libwww-perl perl-radiusperl perl-io-socket-ssl perl-socket6 perl-cgi-speedycgi  perl-fcgi perl-cgi-speedcgi perl-time-hires perl-extutils-makemaker perl-rrd-simple  rrdtool rrdtool-perl curl fping echoping  httpd httpd-devel gcc  Make  wget libxml2-devel libpng-devel glib pango pango-devel freetype  freetype-devel fontconfig cairo cairo-devel libart_lgpl libart_lgpl-devel  mod_fastcgi 

3, download and install smokeping

wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gztar zxvf  Smokeping-2.6.8.tar.gzcd smokeping-2.6.8./configure --prefix=/usr/local/smokeping may need to install Perl modules, You can run the following content./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty./configure --prefix=/usr/local /smokeping /usr/bin/gmake install  to this point, smokeping installation is complete. 

4, Configuration smokeping

4.1. Create cache, data, var directory

Cd/usr/local/smokepingmkdir Cache Data Var

4.2. When creating a log

Touch/var/log/smokeping.log

4.3. Authorization

Chown Apache:apache Cache Data Varchown Apache:apache/var/log/smokeping.log

4.4. Modify the configuration file

CD/USR/LOCAL/SMOKEPING/HTDOCS/MV smokeping.fcgi.dist SMOKEPING.FCGICD/USR/LOCAL/SMOKEPING/ETCMV config.dist Configvim Configcgiurl = http://some.url/smokeping.cgi (change some.url to your IP or domain name)
Database ***step = 300 (detection time, modify step, change from 300 to 60)

4.5. Modify password file permissions after configuration is complete

Chmod600/usr/local/smokeping/etc/smokeping_secrets.dist

4.6. Modify the Apache configuration

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 noneoptions alladdhandler cgi-script .fcgi .cgiorder  allow,denyallow from alldirectoryindex smokeping.fcgi</directory> 

F. Setting up boot-up

echo "/usr/local/smokeping/bin/smokeping--logfile=/var/log/smokeping.log 2>&1 &" >>/etc/rc.local

g. Starting HTTP and smokeping

/etc/init.d/httpd start/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2 >&1 & then access if a 500 error occurs because there is no problem with SELinux off, then it will be accessed normally after shutdown. 5. Security settings: Access control.   Modify content in/etc/httpd/conf/httpd.con <Directory  "/usr/local/smokeping" >AllowOverride  noneoptions alladdhandler cgi-script .fcgi .cgiallowoverride authconfigorder  allow,denyallow from allauthname  "Smokeping" authtype basicauthuserfile /usr/local/ Smokeping/htdocs/htpasswdrequire valid-userdirectoryindex smokeping.fcgi</directory> The previously modified httpd.conf in this section of the direct overlay can then enter the Cd /usr/local/smokeping/htdocs directory, set the login account and password htpasswd -c /usr/local /smokeping/htdocs/htpasswd admin finally restarts the httpd to implement password Authentication login. 6. Some details 6.1  synchronized good time, cp /usr/share/zoneinfo/asia/shanghai /etc/localtimentpdate 210.72.145.44. 6.2  Web page garbled problem if you need to display Chinese in the Web page, modify the/usr/local/smokeping/etc config file *** presentation ***charset =  utf-8 Then in the menu and titile to modify the Chinese, restart can be 7. The configuration file is structured in a hierarchical, easy to configure. 

This article is from the "Scorpio" blog, make sure to keep this source http://secscorpio.blog.51cto.com/8813230/1675734

smokeping Deployment of maintenance tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.