主服务器:ip:121.201.1.3 hostname:121.201.1.3
主服务器:/usr/local/smokeping/etc/config配置:
*** Slaves ***
secrets=/usr/local/smokeping/etc/smokeping_secrets.dist
+boomer
display_name=boomer
color=0000ff
+slave2
display_name=another
color=00ff00
+CactiEZ.local
display_name=CactiEZ.local
location=zhongshan
color=0000ff
++override
Probes.FPing.binary = /usr/sbin/fping
Probes.FPing.sourceaddress = 119.120.92.220 #中山东区电信
主服务器:/usr/local/smokeping/etc/smokeping_secrets.dist配置
CactiEZ.local:abc
###########################################################
从服务器:ip:119.120.92.220 hostname:CactiEZ.local
从服务器:/usr/local/smokeping/etc/config配置:
*** Slaves ***
secrets=/usr/local/smokeping/etc/smokeping_secrets.dist
+boomer
display_name=boomer
color=0000ff
+slave2
display_name=another
color=00ff00
从服务器:/usr/local/smokeping/etc/slave_secret.txt 配置
abc
从服务器:运行报错:
[root@CactiEZ ~]# /usr/local/smokeping/bin/smokeping --master-url=http://121.201.1.3/smokeping/smokeping.fcgi --shared-secret=/usr/local/smokeping/etc/slave_secret.txt --cache-dir=/usr/local/smokeping/cache/
WARNING Master said 401 Authorization Required
ERROR: we did not get config from the master. Maybe we are not configured as a slave for any of the targets on the master ?
http://oss.oetiker.ch/smokepin ... __top
你需要修改的
1.slave 没有配置文件 config , 直接在master里配置就行
2.设置密钥认证
乐橙306 发表于 2016-7-15 09:27
smokeping_master_slave
http://oss.oetiker.ch/smokeping/ ... lave.en.html#___top
是在master配的,我重装了很多次都不成功,还是提示这个错误
编辑回复