ispsh 发表于 2019-1-17 11:19:02

稳定性检测工具smokeping安装配置和使用方法

*** General ***  
owner = server1
  
contact = server1@linuxde.net
  
mailhost = linuxde.netsendmail = /usr/sbin/sendmail
  
imgcache = /opt/smokeping/htdocs/cache
  
imgurl = http://192.168.9.100/cache
  
datadir = /opt/smokeping/data
  
piddir = /opt/smokeping/var
  
cgiurl = http://192.168.9.100/smokeping/smokeping.cgi
  
smokemail = /opt/smokeping/etc/smokemail
  
tmail = /opt/smokeping/etc/tmail
  
# specify this to get syslog logging
  
syslogfacility = local0
  
# each probe is now run in its own process
  
# disable this to revert to the old behaviour
  
# concurrentprobes = no
  
*** Alerts ***
  
to = alertee@address.somewhere
  
from = autopost@linuxde.net
  
+someloss
  
type = loss
  
# in percent
  
pattern = >0%,*12*,>0%,*12*,>0%
  
comment = loss 3 times in a row
  
*** Database ***
  
step = 300
  
pings = 20
  
# consfn mrhb steps total
  
AVERAGE 0.5 1 1008
  
AVERAGE 0.5 12 4320
  
MIN 0.5 12 4320
  
MAX 0.5 12 4320
  
AVERAGE 0.5 144 720
  
MAX 0.5 144 720
  
MIN 0.5 144 720
  
*** Presentation ***
  
template = /opt/smokeping/etc/basepage.html
  
+ charts
  
menu = Charts
  
title = The most interesting destinations
  
++ stddev
  
sorter = StdDev(entries=>4)
  
title = top Standard Deviation
  
menu = Std Deviation
  
format = Standard Deviation %f
  
++ max
  
sorter = Max(entries=>5)
  
title = Top Max Roundtrip timemenu = by Max
  
format = Max Roundtrip Time %f seconds
  
++ loss
  
sorter = Loss(entries=>5)
  
title = Top Packet Loss
  
menu = Loss
  
format = Packets Lost %f
  
++ median
  
sorter = Median(entries=>5)
  
title = Top Median Roundtrip Time
  
menu = by Median
  
format = Median RTT %f seconds
  
+ overview
  
width = 600
  
height = 50
  
range = 10h
  
+ detail
  
width = 600
  
height = 200
  
unison_tolerance = 2
  
"last 3 Hours" 3h
  
"Last 30 Hours" 30h
  
"Last 10 Days" 10d
  
"Last 400 Days" 400d
  
#+ hierarchies
  
#++ owner
  
#title = host Owner
  
#++ location
  
#title = Location
  
*** Probes ***
  
+ FPing
  
binary = /usr/sbin/fping
  
*** Targets ***
  
menuextra = (TR)
  
probe = FPing
  
menu = Top
  
title = linuxde.net
  
remark = Welcome to linuxde.net
  
+ hosts
  
menu= Targets
  
++ linuxde.net
  
menu = linuxde.net
  
title = linuxde.net
  
alerts = someloss
  
host = linuxde.net
  
++ linuxde.net
  
menu = salogs.cm
  
title = linuxde.net
  
alerts = someloss
  
host = linuxde.net


页: [1]
查看完整版本: 稳定性检测工具smokeping安装配置和使用方法