CentOS7安装部署smokeping网络监控

前言

Smokeping是一个开源免费的网络性能监控工具,主要用于监视网络性能,包括常规的 ping,dig,echoping,curl等,可以 监视 www 服务器性能,监视 dns 查询性能,监视 s-s-h 性能等。最重要的是Smokeping的图表非常直观。

原来用的是Smokeping+Apache搭建方法,发现这种模式下还是挺消耗CPU资源的,于是正好趁着更换服务器的空隙将SmokePing搭建在Nginx上,用的是好友的SmokePing一键安装/管理脚本,直接在CentOS 7系统一键安装,配置也是自动的。

环境部署

需求:centOS7以上的以上

硬件:16cpu  16内存,32G硬盘

1、关闭防火墙

[root@SmokePing ~]# systemctl stop firewalld
[root@SmokePing ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. 
[root@SmokePing ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config  //或者可以 vi /etc/SELINUX/config 
把SELINUX=enforcing 改成/SELINUX=disabled 效果与上一样
-------------------------------------------------
[root@SmokePing ~]# grep SELINUX=disabled /etc/selinux/config 
SELINUX=disabled
[root@SmokePing ~]# setenforce 0

2、安装epel-release源

[root@SmokePing ~]# yum -y install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
.......安装信息省略
Installed:
  epel-release.noarch 0:7-11                                                                                                            
Complete!

3、安装组件与绘图工具、web服务、及Smokeping扩展包

[root@SmokePing ~]# yum -y install rrdtool perl-rrdtool fping httpd openssl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                             | 6.7 kB  00:00:00     
 * base: mirrors.163.com
 * epel: repos.eggycrew.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
.......安装信息省略

Installed: 
  fping.x86_64 0:3.10-4.el7  openssl-devel.x86_64 1:1.0.2k-21.el7_9  rrdtool.x86_64 0:1.4.8-9.el7  rrdtool-perl.x86_64 0:1.4.8-9.el7 

Dependency Installed: //所依赖的安装包
  cairo.x86_64 0:1.15.12-4.el7             fontconfig.x86_64 0:2.13.0-4.3.el7          freetype.x86_64 0:2.8-14.el7_9.1               
  harfbuzz.x86_64 0:1.7.5-2.el7            libXft.x86_64 0:2.3.2-2.el7                 pango.x86_64 0:1.42.4-4.el7_7                  
  perl.x86_64 4:5.16.3-299.el7_9           perl-Carp.noarch 0:1.26-244.el7             perl-Encode.x86_64 0:2.51-7.el7                
  perl-Exporter.noarch 0:5.68-3.el7        perl-File-Path.noarch 0:2.09-2.el7          perl-File-Temp.noarch 0:0.23.01-3.el7          
  perl-Filter.x86_64 0:1.49-3.el7          perl-Getopt-Long.noarch 0:2.40-3.el7        perl-HTTP-Tiny.noarch 0:0.033-3.el7            
  perl-PathTools.x86_64 0:3.40-5.el7       perl-Pod-Escapes.noarch 1:1.04-299.el7_9    perl-Pod-Perldoc.noarch 0:3.20-4.el7           
  perl-Pod-Simple.noarch 1:3.28-4.el7      perl-Pod-Usage.noarch 0:1.63-3.el7          perl-Scalar-List-Utils.x86_64 0:1.27-248.el7   
  perl-Socket.x86_64 0:2.010-5.el7         perl-Storable.x86_64 0:2.45-3.el7           perl-Text-ParseWords.noarch 0:3.29-4.el7       
  perl-Time-HiRes.x86_64 4:1.9725-3.el7    perl-Time-Local.noarch 0:1.2300-2.el7       perl-constant.noarch 0:1.27-2.el7              
  perl-libs.x86_64 4:5.16.3-299.el7_9      perl-macros.x86_64 4:5.16.3-299.el7_9       perl-parent.noarch 1:0.225-244.el7             
  perl-podlators.noarch 0:2.5.1-3.el7      perl-threads.x86_64 0:1.87-4.el7            perl-threads-shared.x86_64 0:1.43-6.el7  
[root@SmokePing ~]# yum -y install perl-core curl gcc gcc-c++ wget //安装gcc gcc-c++等服务包
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * epel: repos.eggycrew.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com

Installed: //完成安装
  gcc-c++.x86_64 0:4.8.5-44.el7                                   perl-core.x86_64 0:5.16.3-299.el7_9       

你可能感兴趣的:(网络,服务器,linux)