CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了centos6.8 smokeping 安装大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

       smokeping 安装                            2016-12-19 11:20:10     标签:安装 smokeping 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://www.voidcn.com/article/p-khtemfpw-bpg.html            

smokeping 安装 2016-12-19 11:20:10

标签安装 smokeping


原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://code.js-code.com/article/p-khtemfpw-bpg.html

下面的脚本安装是在centos6的系统上执行的


iptables -F

iptables -X

service iptables save


sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

setenforce 0


安装smoekping相关的依赖包

yum -y install rrdtool popt* curl bind-utils openssh-clients httpd perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-IO-Socket-SSL perl-Socket6 perl-Time-HiRes perl-ExtUtils-MakeMaker rrdtool rrdtool-perl curl 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 libidn* make automake wqy-zenhei-fonts.noarch





service httpd restart

chkconfig httpd on


链接http://pan.baidu.com/s/1nuOT4V3 密码:63n5

下载百度云盘里面的smokeping安装包,在要安装的centos系统里的root目录下解压,会得到三个软件包


解压并安装下面三个软件包

cd /root

tar zxvf fping-3.10.tar.gz

cdfping-3.10

./configure --prefix=/usr/local/fping && make && make install

ln -s /usr/local/fping/sbin/fping /usr/sbin/fping


cd /root/

cd /root

tar zxvf echoping-6.0.2.tar.gz

cd /root/echoping-6.0.2

./configure --prefix=/usr/local/echoping && make && make install


cd /root/

tar zxvfsmokeping-2.6.9.tar.gz

cd /root/smokeping-2.6.9/

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

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

/usr/bin/gmake install


cd /usr/local/smokeping/

@H_538_14@mkdir cache data var

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

@H_538_14@mv smokeping.fcgi.dist smokeping.fcgi


cd /usr/local/smokeping/etc

百度云盘里的smoekping配置文件替换原来的配置文件


配置apacha

cat >> /etc/httpd/conf/httpd.conf << OFF

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>

OFF


cd /usr/local/smokeping/lib/Smokeping/

rm -rf Graphs.pm

wget http://zabbix.idc02.369cloud.com/base/Graphs.pm

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


/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &


ervice httpd restart

大佬总结

以上是大佬教程为你收集整理的centos6.8 smokeping 安装全部内容,希望文章能够帮你解决centos6.8 smokeping 安装所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。