Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos6.5 or 6.x 5.x build smokeping

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

1. Preparatory work

Turn off the firewall and SELINUX

two。 Install rpmforge

# yum install wget

(* CentOS 6 Please use this library *)

Wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Rpm-Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

(* CentOS 5 Please use this library *)

Wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

Rpm-Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

3. Install the required software packages

# yum install mod_fcgid httpd httpd-devel rrdtool fping wget curl bind-utils gcc make

# yum 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-RRD-Simple perl-CGI-SpeedCGI perl-ExtUtils-MakeMaker

4. Install smokeping

# wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gz

# tar-zxvf smokeping-2.6.8.tar.gz-C / opt/

# mkdir / opt/smokeping

# cd / opt/smokeping-2.6.8/setup

#. / build-perl-modules.sh

# cp-r.. / thirdparty / opt/smokeping/

# cd..

#. / configure-prefix=/opt/smokeping

# make install

5. Create a missing folder

# cd / opt/smokeping

# mkdir data var cache

6. Add smokeping start / stop script

# wget http://new.wedebugyou.com/static/smokeping_start_stop.txt

# mv smokeping_start_stop.txt / etc/init.d/smokeping

# chmod 755 / etc/init.d/smokeping

7. Rename configuration files and change security

# cd / opt/smokeping/etc/

# for foo in * .dist; do cp $foo `basename $foo .dist`; done

# chmod 600 / opt/smokeping/etc/smokeping_secrets.dist

8. Change the default profile

# vim config

(the "*" range can be separated from the sample configuration file)

*

* General * *

Owner = Nolan Guo

Contact = guoyingce@originpoker.com

# mailhost = my.mail.host

# sendmail = / usr/sbin/sendmail

# NOTE: do not put the Image Cache below cgi-bin

# since all files under cgi-bin will be executed... This is not

# good for p_w_picpaths.

Imgcache = / opt/smokeping/cache

Imgurl = cache

Datadir = / opt/smokeping/data

Piddir = / opt/smokeping/var

Cgiurl = http://*****/smokeping.cgi

Smokemail = / opt/smokeping/etc/smokemail.dist

Tmail = / opt/smokeping/etc/tmail.dist

# specify this to get syslog logging

Syslogfacility = local0

# each probe is now run in its own process

# disable this to revert to the old behaviour

# concurrentprobes = no

* Alerts * *

To = alertee@address.somewhere

From = smokealert@company.xy

+ someloss

Type = loss

# in percent

Pattern = > 0%, > 0%, > 0%, > 0%

Comment = loss 3 times in a row

* Database * *

Step = 300

Pings = 20

# consfn mrhb steps total

AVERAGE 0.5 1 1008

AVERAGE 0.5 12 4320

MIN 0.5 12 4320

MAX 0.5 12 4320

AVERAGE 0.5 144 720

MAX 0.5 144 720

MIN 0.5 144 720

* Presentation * *

Template = / opt/smokeping/etc/basepage.html.dist

+ charts

Menu = Charts

Title = The most interesting destinations

+ + stddev

Sorter = StdDev (entries= > 4)

Title = Top Standard Deviation

Menu = Std Deviation

Format = Standard Deviation f

+ + max

Sorter = Max (entries= > 5)

Title = Top Max Roundtrip Time

Menu = by Max

Format = Max Roundtrip Time% f seconds

+ + loss

Sorter = Loss (entries= > 5)

Title = Top Packet Loss

Menu = Loss

Format = Packets Lost f

+ + median

Sorter = Median (entries= > 5)

Title = Top Median Roundtrip Time

Menu = by Median

Format = Median RTT% f seconds

+ overview

Width = 600,

Height = 50

Range = 10h

+ detail

Width = 600,

Height = 200

Unison_tolerance = 2

"Last 3 Hours" 3h

"Last 30 Hours" 30h

"Last 10 Days" 10d

"Last 400Days" 400d

# + hierarchies

# + + owner

# title = Host Owner

# + + owner

# title = Host Owner

# + + location

# title = Location

* Probes * *

+ FPing

Binary = / usr/sbin/fping

+ Curl

Binary = / usr/bin/curl

Urlformat = https://%host%/

Pings = 3

* Targets * *

Probe = FPing

Menu = Top

Title = Network Latency Grapher

Remark = Welcome to the SmokePing website of Originpoker Company. \

Here you will learn all about the latency of our network.

*

9.smokeping to Web server configuration

# cd / opt/smokeping

# ln-s / opt/smokeping/cache / opt/smokeping/htdocs/cache

# chown-R apache cache

# chown-R apache data

(add the file / etc / server / conf.d/smokeping.conf for these behaviors)

ScriptAlias/smokeping/smokeping.cgi / opt/smokeping/htdocs/smokeping.fcgi.dist

Alias / smokeping/ opt/smokeping/htdocs

Options FollowSymLinks

10. Start the service

# / etc/init.d/smokeping start

# / etc/init.d/httpd start

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report