CENTOS6 smokeping Installation

Source: Internet
Author: User
Tags cairo pings rrd rrdtool smokeping

smokeping is a monitoring software for network performance monitoring, it can be used in its own company IDC network conditions, such as delay, packet loss, whether BGP multi-line, etc., by RRDtool mapping mode, graphically show the network delay, and then can clearly determine the network of instant communication,

Experimental environment

Centos6.5_x64

Experimental software

Echoping-6.0.2.tar.gz

Fping-3.10.tar.gz

Smokeping-2.6.9.tar.gz

Software Installation

Yum Clean All

Yum Makecache-y

Yum install-y perl perl-net-telnet perl-net-dns perl-ldap Perl-libwww-perl Perl-io-socket-sslperl-socket6 Perl-time-hires perl-extutils-makemaker rrdtool rrdtool-perl curlhttpd httpd-devel gcc make wget libxml2-devel Libpng-devel glib pangopango-devel freetype freetype-devel fontconfig Cairo cairo-devel Libart_lgpllibart_lgpl-devel Popt popt-devel libidn libidn-devel wqy-zenhei-fonts.noarch

Tar zxvf fping-3.10.tar.gz

CD fping-3.10

./configure

Make

Make install

Tar xvf echoping-6.0.2.tar.gz

CD echoping-6.0.2

./configue

Make

Make install

Tar zxvf smokeping-2.6.9.tar.gz

CD smokeping-2.6.9

./setup/build-perl-modules.sh/usr/local/smokeping/thirdparty

./configure--prefix=/usr/local/smokeping

/usr/bin/gmakeinstall

cd/usr/local/smokeping/

mkdir Cache Datavar

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/

Mvsmokeping.fcgi.dist smokeping.fcgi

cd/usr/local/smokeping/etc/

MV Config.distconfig

Vim/usr/local/smokeping/etc/config

Cgiurl = http://some.url/smokeping.cgi

Cgiurl = http://192.168.31.243/smokeping.cgi 192.168.31.243 for the server IP

Step = 300

pings = 20

Step = modified to, this option is the time to collect data

pings = 20

Vim/usr/local/smokeping/etc/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/dianxin/dianxin-sh/other/dianxin/dianxin-gz
+ + DIANXIN-BJ
menu =Beijing Telecom
title =Beijing Telecom
Alerts = Someloss Add host secondary option unchanged
Host =content is defined as required

Vim/etc/httpd/conf/httpd.conf

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> above several lines added at the end of the configuration file

Vim/usr/local/smokeping/etc/config

charset = Utf-8 Add a secondary row configuration

Wuyi Template =/usr/local/smokeping/etc/basepage.html.dist

vim/usr/local/smokeping/lib/smokeping/graphs.pm

147 '--end ', $tasks [0][2],

148 "def:maxping= $cfg->{general}{datadir}${host}.rrd:median:average"

147 '--end ', $tasks [0][2],

148 '--font title:20: "Wenquanyi Zen Hei Mono", Add a secondary row configuration

149 "def:maxping= $cfg->{general}{datadir}${host}.rrd:median:average"

Vim/usr/local/smokeping/etc/config

#binary =/usr/sbin/fping

binary =/usr/local/sbin/fping modified to

/etc/rc.d/init.d/httpdrestart

Stopping httpd:[OK]

Starting httpd:[OK]

/usr/local/smokeping/bin/smokeping

Note:logging Tosyslog as Local0/info.

Daemonizing/usr/local/smokeping/bin/smokeping ...

Ps-aux | Grepsmokeping

Warning:badsyntax, perhaps a bogus '-'? See/usr/share/doc/procps-3.2.8/faq

Root 39844 0.0 2.3 231392 23412? Ss 11:27 0:00/usr/local/smokeping/bin/smokeping [fping]

Root 39851 0.0 0.0 103260 876 pts/0 s+ 11:28 0:00 grep smokeping

/ http Server ip/smokeping If there is a domain name better here in the experimental environment

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/CC/wKioL1gdVYzQD9-lAADOuKgGQhg216.jpg-wh_500x0-wm_3 -wmp_4-s_1072357256.jpg "title=" smokeping.jpg "alt=" Wkiol1gdvyzqd9-laadoukggqhg216.jpg-wh_50 "/>

This article from "Mailfile" blog, declined reprint!

CENTOS6 smokeping Installation

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.