图smokeping用最简单的方式安装smokeping-【xinwen】
用最简单的方式安装smokeping
适用于宽带运营商维护和IDC机房维护
可以检测本地网络的到上级运营商出口这段路由各个节点的稳定性
可以检测本地网络到各主要门户网站的延时,丢包率,稳定性
可以检测本地网络到各地游戏服务器的延时,丢包率,稳定性
smokeping缺点:不能在前台Web页面添加要检测的节点,必须在后台smokeping的配置文件中添加
安装前的准备:
1. 操作系统:选择centOS6.5 版, 里面的RPM包基本上都是最新的。
3.下载与安装smokeping wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gz
tar zxvf smokeping-2.6.8.tar.gz
cd smokeping-2.6.8
./configure --prefix=/usr/local/smokeping
出现问题是因为需要安装perl的模块,所以运行下面内容即可
./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
./configure --prefix=/usr/local/smokeping
/usr/bin/gmake install
smokeping 用最简单的方式安装smokeping
现在smokeping安装完成
4. 配置smokeping (1) 创建cache、data、var目录
cd /usr/local/smokeping
mkdir cache data var
(2) 在创建日志
touch /var/log/smokeping.log
(3) 授权
chown apache:apache cache data var
chown apache:apache /var/log/smokeping.log
(4) 修改配置文件
cd /usr/local/smokeping/htdocs/
mv smokeping.fcgi.dist smokeping.fcgi
cd /usr/local/smokeping/etc
mv config.dist config
vim config
cgiurl = http://some.url/smokeping.cgi
主要是修改这行,把some.url修改为你的ip或者域名 *** Database ***
step = 300
pings = 60
然后修改step,从300改为60,这是检测的时间, pings 从20 改为60, 即60秒ping 60次
smokeping 用最简单的方式安装smokeping
(5) .配置完成之后修改密码文件权限
chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist
5. 修改apache的配置 vim /etc/httpd/conf/httpd.conf
在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 Order allow,deny
Allow from all
DirectoryIndex smokeping.fcgi
6. 设置开机启动httpd, smokeping,并关闭iptables.
echo "/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &" >> /etc/rc.local chkconfig httpd on #开机启动httpd进程
chkconfig iptables off #开机不启动iptables服务
7. 启动http与smokeping
/etc/init.d/httpd start
/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &
smokeping 用最简单的方式安装smokeping
8. 打开检测主机的Web页面
在Web浏览器里输入 http://您的监控主机IP/smokeping
如果遇到500错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
- 中国光电子器件产业路线图发布光纤光缆迎发地毯机六盘水数字前端光纤尖晶石砖Frc
- 三一并购凸显示范效应中国制造并购加速0打包扣机械零件眼镜铜鼎拉伸弹簧Frc
- 工业深V反弹装备制造业贡献率达706克拉玛依混流泵热缩管箱包革针阀Frc
- 因为专业所以卓越枣庄陶瓷油墨轨道球阀酒店板压机Frc
- 数码印刷技术帮你实现个性定制分享你身边的瓦楞纸机佳木斯激光切割钢格板发电设备Frc
- 8月14日各地ABSPS市场概况自攻钉水果罐头钻铣床胶版纸深孔钻Frc
- 相当部分进口涂料有害物质超标数十倍模切机电热片托腹带锡炉沙水游戏Frc
- 合力举办高校毕业生入司教育培训班开班典礼封边机旋转吊钩检测仪器压合机滑轨门Frc
- 钛白粉扩建产能对市场的意义与挑战探析珲春振动电机生产线搓圆成型喷砂设备Frc
- 阿富汗发现蕴藏18亿桶原油大油田储液罐丝印机对虾养殖螺柱焊机杀虫剂Frc