In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
1. Basic environment yum installation
Yum-y install freetype freetype-devel libpng libpng-devel gd gd-devel libxml2 libxml2-devel
Libiconv libiconv-devel pango pango-devel qpixman qpixman-devel glib glib-devel cairo cairo-devel libart* gettext gettext-devel libjpeg libjpeg-devel perl-XML-Simple.noarch perl-Crypt-SSLeay perl-Digest-HMAC
Yum install httpd
Yum install httpd-devel
Yum install fping
2. Chinese is supported for installation
Yum-y install wqy-zenhei-fonts.noarch "Picture display in Chinese"
Vim / usr/local/smokeping/lib/Smokeping/Graphs.pm "modify in smokeping"
My ($graphret,$xs,$ys) = RRDs::graph
("dummy"
'--start', $tasks [0] [1]
'--end', $tasks [0] [2]
After that, add'--font TITLE:20: 'WenQuanYi Zen Hei Mono'
/ usr/local/smokeping/etc/config "smokeping profile add"
* Presentation * *
Charset = utf-8
3. Install smokeping
Wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.2.tar.gz
Tar zxvf smokeping-2.4.2.tar.gz
Mv smokeping-2.4.2 / usr/local/smokeping
Cd / usr/local/smokeping/
. / configure-- prefix=/usr/local/smokeping
The error is as follows
* * Aborting Configure * *
If you know where perl can find the missing modules, set
The PERL5LIB environment variable accordingly.
FIRST though, make sure that 'perl' starts the perl
Binary you want to use for SmokePing.
Now you can install local copies of the missing modules
By running
. / setup/build-perl-modules.sh / usr/local/thirdparty
The RRDs perl module is part of RRDtool. Either use the rrdtool
Package provided by your OS or install rrdtool from source.
If you install from source, the RRDs module is located
PREFIX/lib/perl
When prompted, run. / setup/build-perl-modules.sh / usr/local/thirdparty
You can look at the contents of the. / setup/build-perl-modules.sh script and find that you are actually installing some perl modules that smokeping depends on.
Export PERL5LIB=/usr/local/smokeping/thirdparty/lib/perl5/
. / configure-- prefix=/usr/local/smokeping
/ usr/bin/gmake install
4. Copy all belts * .dist
Cd / usr/local/smokeping/etc
Cp smokemail.dist smokemail
Cp tmail.dist tmail
Cp config.dist config
Cd / usr/local/smokeping/htdocs
Cp smokeping.fcgi.dist smokeping.fcgi
5. Modify httpd.conf configuration file
DocumentRoot "/ var/www/html"
Alias / cache "/ usr/local/smokeping/cache/"
Alias / cropper "/ usr/local/smokeping/htdocs/cropper/"
Alias / smokeping "/ usr/local/smokeping/htdocs/smokeping.fcgi"
AllowOverride None
Options All
AddHandler cgi-script .fcgi .cgi
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName "Smokeping"
AuthType Basic
AuthUserFile / usr/local/smokeping/htdocs/htpasswd
Require valid-user
DirectoryIndex smokeping.fcgi
6. Modify / usr/local/smokeping/etc/config
* *: the marked blocks belong to different types of content
+: represents the first level menu + the following + + inherits the above + to become the second level menu. And there can be multiple first-level menus and second-level menus.
The first part is General block, which belongs to the basic configuration.
Owner = the user that daemon smokeping is running
Contact = admin@coocla.org smokeping administrator contact email address
Mailhost = localhost mail server address
Sendmail = / usr/sbin/sendmail binary executable program for sending mail
Imgcache = / usr/local/smokeping/cache smokeping picture cache
Imgurl = cache defines the url directory where the cgi program displays pictures
Datadir = / usr/local/smokeping/data smokeping directory where the rrd file is saved
Piddir = / usr/local/smokeping/var, as the name implies, its pid directory
Cgiurl = the url path of the complete smokeping of http://some.url/smokeping.cgi
Smokemail = / usr/local/smokeping/etc/smokemail.dist the message content template of the message sent
Tmail = / path to the usr/local/smokeping/etc/tmail.dist HTML mail template
Syslogfacility = device number for local0 syslog logging
The second part is Alter block, which belongs to alarm configuration.
To = admin@coocla.org alarm email recipient address
From = smokealert@company.xy alarm email sender address
+ someloss defines an alarm named someloss
Type = loss type is packet loss
Pattern = > 0%, > 0%, > 0%, and 0%, respectively, for threshold matching of monitoring content.
Comment = loss 3 times in a row tests 12 times, and there are 3 packet losses. No matter how many packets are lost, alarm will be made.
+ 70_rttbad
Type = rtt
Pattern = > 70, > 70, > 70 # in milliseconds
Comment = For more than three consecutive 70-millisecond delay.
# comment = rttbad indicates that an alarm will be sent if the delay of three consecutive packets exceeds 70ms
+ 80_rttbad
Type = rtt
Pattern = > 80, > 80, > 80 # in milliseconds
Comment = For more than three consecutive 80-millisecond delay.
# comment = rttbad indicates that an alarm will be sent if the delay of three consecutive packets exceeds 80ms
The third part is Database block, which belongs to the configuration of RRDTOOL database.
Step = 300 steps, that is, how long is a cycle
Pings = the number of times 20 ping. The combination of these two items means that 20 ping operations are performed every 300 seconds.
# 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
The fourth part is the Presentation block, which belongs to the network status and some configuration items displayed by web.
I haven't seen this one yet. Put it here for the time being.
The fifth part is Probes block, which belongs to the configuration of Fping pointer.
+ FPing
Binary = / usr/sbin/fping
Part VI: Slave block, which belongs to the configuration of Matster,Slave architecture.
Comment it for the time being, together with the items involved in the context, otherwise an error will be reported when you start later.
Part 7: Targets block, which belongs to the configuration of monitoring targets.
Probe = FPing specifies the monitoring pointer
Menu = Top defines a menu with a type of Top,titile comments and other information that can be customized
Title = Network Latency Grapher
Remark = Welcome to the SmokePing website of xxx Company. \
Here you will learn all about the latency of our network.
+ Test
Menu= Targets defines a first-level menu
# parents = owner:/Test/James location:/
+ + James defines a host as James
Menu = James menu named James
Title = James
Alerts = someloss alarm threshold is the someloss defined above
# slaves = boomer slave2
Host = host blog.coocla.org monitored by blog.coocla.org
7. Start smokeping httpd
Chmod 600 / usr/local/smokeping/etc/smokeping_secrets.dist
Chown apache:apache.. / smokeping-R "allow apache to read information"
/ usr/local/smokeping/bin/smokeping-- logfile=/var/log/smokeping.log 2 > & 1 "start smokeping"
/ usr/local/smokeping/bin/smokeping-- reload "reload configuration file"
8. the centralized display of the home page and the setting of the alarm respectively
The following example 70_rttbad indicates delay 23ms 80_rttbad indicates delay 20ms
+ + Dianxin
Menu = Telecommunication Network
Title = Telecommunication Network
Host = / moniter/Dianxin/dx1 / moniter/Dianxin/dx2
+ dx1
Menu = telecommunication network 140.205.203.152
Title = telecommunication network 140.205.203.152
Alerts = someloss,70_rttbad
Host = 140.205.203.152
+ dx2
Menu = telecommunication network 140.205.195.2
Title = telecommunication network 140.205.195.2
Alerts = someloss,80_rttbad
Host = 1140.205.195.2
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.