3月 212015
 

Smokeping的master/slave配置

从多个位置和网络检测同一主机位置的网络

安装smokeping及相关依赖软件包

确认master上共享密钥配置文件的权限和内容
[root@localhost ~]# cd /opt/smokeping/etc/
[root@localhost etc]# ll smokeping_secrets.dist
-rw——-. 1 apache root 59 Mar 20 03:49 smokeping_secrets.dist
[root@localhost etc]# cat smokeping_secrets.dist
host1:mysercert
host2:yoursercert
boomer:lkasdf93uhhfdfddf
[root@localhost etc]#

编辑slave共享密钥配置文件
[root@localhost ~]# cd /opt/smokeping/etc/
[root@localhost etc]# vi smokeping_secrets.dist
lkasdf93uhhfdfddf
Slave以Debug方式启动
[root@localhost etc]# /opt/smokeping/bin/smokeping –master-url=http://192.168.150.79/smokeping/smokeping.cgi –cache-dir=/opt/smokeping/cache/ –shared-secret=/opt/smokeping/etc/smokeping_secrets.dist –slave-name=boomer –logfile=/opt/smokeping/slave.log –debug-daemon
Sent data to Server and got new config in response.
Note: logging to syslog as local0/info.
Daemonizing /opt/smokeping/bin/smokeping …
[root@localhost etc]#

Slave正常工作后的日志输出
Fri Mar 20 09:22:10 2015 – FPing: Executing /usr/sbin/fping -C 20 -q -B1 -r1 -i10 www.baidu.com
Fri Mar 20 09:22:29 2015 – FPing: Got fping output: ‘www.baidu.com : 26.36 26.28 25.46 25.71 25.84 25.29 25.20 25.00 24.92 25.96 25.19 25.48 24.71 25.67 26.62 25.13 25.11 24.79 24.90 25.69’
Fri Mar 20 09:22:29 2015 – Sent data to Server. Server said OK
Fri Mar 20 09:22:29 2015 – FPing: Sleeping 41 seconds.

smokeping-example-graph-01 smokeping-example-graph-02 smokeping-example-graph-03 smokeping-example-graph-04

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据