星空网 > 软件开发 > 操作系统

Smokeping 监控部署及配置

安装参见:
 https://github.com/oetiker/SmokePing/blob/master/doc/smokeping_install.pod

1 Smokeping 2 3 *** General *** 4 5 owner = Ctry 6 contact = admin@lerry.com 7 mailhost = 127.0.0.1 8 sendmail = /sbin/sendmail 9 # NOTE: do not put the Image Cache below cgi-bin 10 # since all files under cgi-bin will be executed ... this is not 11 # good for images. 12 imgcache = /usr/local/smokeping/cache 13 imgurl = cache 14 datadir = /usr/local/smokeping/data 15 piddir = /usr/local/smokeping/var 16 cgiurl = http://1.1.1.1/smokeping/smokeping.cgi 17 smokemail = /usr/local/smokeping/etc/smokemail.dist 18 tmail = /usr/local/smokeping/etc/tmail.dist 19 # specify this to get syslog logging 20 syslogfacility = local0 21 # each probe is now run in its own process 22 # disable this to revert to the old behaviour 23 # concurrentprobes = no 24 25 *** Alerts *** 26 to = admin@lerry.com 27 from = smokeping@lerry.com 28 29 +someloss 30 type = loss 31 # in percent 32 pattern = >0%,*12*,>0%,*12*,>0% 33 comment = loss 3 times in a row 34 35 *** Database *** 36 37 step = 60 38 pings = 20 39 40 # consfn mrhb steps total 41 42 AVERAGE 0.5 1 1008 43 AVERAGE 0.5 12 4320 44 MIN 0.5 12 4320 45 MAX 0.5 12 4320 46 AVERAGE 0.5 144 720 47 MAX 0.5 144 720 48 MIN 0.5 144 720 49 50 *** Presentation *** 51 charset = utf-8 # 支持显示中文的树状图以及rrdtool画出的图显示中文 52 53 template = /usr/local/smokeping/etc/basepage.html.dist 54 55 + charts 56 57 menu = Charts 58 title = The most interesting destinations 59 60 ++ stddev 61 sorter = StdDev(entries=>4) 62 title = Top Standard Deviation 63 menu = Std Deviation 64 format = Standard Deviation %f 65 66 ++ max 67 sorter = Max(entries=>5) 68 title = Top Max Roundtrip Time 69 menu = by Max 70 format = Max Roundtrip Time %f seconds 71 72 ++ loss 73 sorter = Loss(entries=>5) 74 title = Top Packet Loss 75 menu = Loss 76 format = Packets Lost %f 77 78 ++ median 79 sorter = Median(entries=>5) 80 title = Top Median Roundtrip Time 81 menu = by Median 82 format = Median RTT %f seconds 83 84 + overview 85 86 width = 1000 87 height = 200 88 range = 10h 89 90 + detail 91 92 width = 1000 93 height = 200 94 unison_tolerance = 2 95 96 "Last 2 Hours" 2h 97 "Last 24 Hours" 24h 98 "Last 7 Days" 7d 99 "Last 30 Days" 30d100 "Last 365 Days" 365d101 "Last 4 Years" 4y102 103 #+ hierarchies104 #++ owner105 #title = Host Owner106 #++ location107 #title = Location108 109 *** Probes ***110 111 + FPing112 113 binary = /usr/sbin/fping114 115 *** Slaves ***116 secrets=/usr/local/smokeping/etc/smokeping_secrets.dist117 +boomer118 display_name=boomer119 color=0000ff120 121 +slave2122 display_name=another123 color=00ff00124 125 *** Targets ***126 127 probe = FPing128 129 menu = Top130 title = Network Latency Grapher131 remark = Welcome to the SmokePing website of HaiZhi Company. \132 Here you will learn all about the latency of our network.133 134 + Unicom135 136 menu = 各地网络连通性监控137 title = 监控统计138 139 ++ Telecom140 menu = 电信网络监控141 title = 电信网络监控列表142 host = /Unicom/Telecom/telecom-xian /Unicom/Telecom/telecom-shanghai /Unicom/Telecom/telecom-sichuan /Unicom/Telecom/telecom-shenzhen /Unicom/Telecom/telecom-zhejiang /Unicom/Telecom/telecom-changsha /Unicom/Telecom/telecom-wuhan /Unicom/Telecom/telecom-jiangsu /Unicom/Telecom/telecom-chongqing /Unicom/Telecom/telecom-fujian /Unicom/Telecom/telecom-neimeng /Unicom/Telecom/telecom-xinjiang /Unicom/Telecom/telecom-guizhou /Unicom/Telecom/telecom-tianjin /Unicom/Telecom/telecom-hubei /Unicom/Telecom/telecom-beijing143 144 +++ telecom-xian145 menu = 西安电信146 title = 西安电信147 alerts = someloss148 host = 61.150.91.55149 150 +++ telecom-shanghai151 menu = 上海电信152 title = 上海电信153 alerts = someloss154 host = 180.169.22.226155 156 +++ telecom-sichuan157 menu = 四川电信158 title = 四川电信159 alerts = someloss160 host = 211.149.224.160161 162 +++ telecom-shenzhen163 menu = 深圳电信164 title = 深圳电信165 alerts = someloss166 host = 183.63.53.120167 168 +++ telecom-zhejiang169 menu = 浙江电信170 title = 浙江电信171 alerts = someloss172 host = 122.226.223.82173 174 +++ telecom-changsha175 menu = 长沙电信176 title = 长沙电信177 alerts = someloss178 host = 124.232.150.171179 180 +++ telecom-wuhan181 menu = 武汉电信182 title = 武汉电信183 alerts = someloss184 host = 59.173.18.243185 186 +++ telecom-jiangsu187 menu = 江苏电信188 title = 江苏电信189 alerts = someloss190 host = 58.215.186.208191 192 +++ telecom-chongqing193 menu = 重庆电信194 title = 重庆电信195 alerts = someloss196 host = 219.153.71.238197 198 +++ telecom-fujian199 menu = 福建电信200 title = 福建电信201 alerts = someloss202 host = 218.6.9.4203 204 +++ telecom-neimeng205 menu = 内蒙电信206 title = 内蒙电信207 alerts = someloss208 host = 101.53.100.113209 210 +++ telecom-xinjiang211 menu = 乌鲁木齐电信212 title = 乌鲁木齐电信213 alerts = someloss214 host = 124.119.87.204215 216 +++ telecom-guizhou217 menu = 贵州电信218 title = 贵州电信219 alerts = someloss220 host = 222.87.128.7221 222 +++ telecom-tianjin223 menu = 天津电信224 title = 天津电信225 alerts = someloss226 host = 221.238.254.118227 228 +++ telecom-hubei229 menu = 十堰电信230 title = 十堰电信231 alerts = someloss232 host = 61.183.41.197233 234 +++ telecom-beijing235 menu = 北京电信236 title = 北京电信237 alerts = someloss238 host = 119.90.3.2239 240 ++ Mobile241 menu = 移动网络监控242 title = 移动网络监控列表243 host = /Unicom/Mobile/mobile-zhejiang /Unicom/Mobile/mobile-shanghai /Unicom/Mobile/mobile-tianjin /Unicom/Mobile/mobile-jinan /Unicom/Mobile/mobile-beijing /Unicom/Mobile/mobile-suzhou /Unicom/Mobile/mobile-wuhan /Unicom/Mobile/mobile-shenyang /Unicom/Mobile/mobile-quanzhou /Unicom/Mobile/mobile-xiamen244 245 +++ mobile-zhejiang246 menu = 浙江移动247 title = 浙江移动248 alerts = someloss249 host = 211.140.143.3250 251 +++ mobile-shanghai252 menu = 上海移动253 title = 上海移动254 alerts = someloss255 host = 117.135.137.82256 257 +++ mobile-tianjin258 menu = 天津移动259 title = 天津移动260 alerts = someloss261 host = 117.131.207.163262 263 +++ mobile-jinan264 menu = 济南移动265 title = 济南移动266 alerts = someloss267 host = 223.99.238.104268 269 +++ mobile-beijing270 menu = 北京移动271 title = 北京移动272 alerts = someloss273 host = 111.13.56.26274 275 +++ mobile-suzhou276 menu = 苏州移动277 title = 苏州移动278 alerts = someloss279 host = 112.25.230.238280 281 +++ mobile-wuhan282 menu = 武汉移动283 title = 武汉移动284 alerts = someloss285 host = 111.47.111.229286 287 +++ mobile-shenyang288 menu = 沈阳移动289 title = 沈阳移动290 alerts = someloss291 host = 223.100.7.69292 293 +++ mobile-quanzhou294 menu = 泉州移动295 title = 泉州移动296 alerts = someloss297 host = 112.5.16.13298 299 +++ mobile-xiamen300 menu = 厦门移动301 title = 厦门移动302 alerts = someloss303 host = 218.207.194.109304 305 ++ Unicom306 menu = 联通网络监控307 title = 联通网络监控列表308 host = /Unicom/Unicom/unicom-dalian /Unicom/Unicom/unicom-beijing /Unicom/Unicom/unicom-jinan /Unicom/Unicom/unicom-shanghai /Unicom/Unicom/unicom-henan /Unicom/Unicom/unicom-heilongjiang /Unicom/Unicom/unicom-tianjin /Unicom/Unicom/unicom-shijiazhuang /Unicom/Unicom/unicom-taiyuan309 310 +++ unicom-dalian311 menu = 大连联通312 title = 大连联通313 alerts = someloss314 host = 218.61.8.10315 316 +++ unicom-beijing317 menu = 北京联通318 title = 北京联通319 alerts = someloss320 host = 118.186.222.66321 322 +++ unicom-jinan323 menu = 济南联通324 title = 济南联通325 alerts = someloss326 host = 124.133.28.7327 328 +++ unicom-shanghai329 menu = 上海联通330 title = 上海联通331 alerts = someloss332 host = 58.246.45.89333 334 +++ unicom-henan335 menu = 河南联通336 title = 河南联通337 alerts = someloss338 host = 125.46.54.236339 340 +++ unicom-heilongjiang341 menu = 黑龙江联通342 title = 黑龙江联通343 alerts = someloss344 host = 125.211.202.138345 346 +++ unicom-tianjin347 menu = 天津联通348 title = 天津联通349 alerts = someloss350 host = 60.28.24.236351 352 +++ unicom-shijiazhuang353 menu = 石家庄联通354 title = 石家庄联通355 alerts = someloss356 host = 110.249.209.130357 358 +++ unicom-taiyuan359 menu = 太原联通360 title = 太原联通361 alerts = someloss362 host = 221.204.238.54

效果展示:

Smokeping 监控部署及配置

常见问题:

File '/usr/local/smokeping/etc/smokeping_secrets.dist' is world-readable

查看smokeping_secrets.dist文件属性是否为400,如不是请按照如下修改:注意etc/smokeping_secrets.dist文件属性必须400chmod 400 smokeping_secrets.distservice smokeping restart

中文设置:

yum -y install wqy-zenhei-fonts.noarch/usr/local/smokeping/lib/Smokeping/Graphs.pmif ($mode =~ /[anc]/){    my $val = 0;    for my $host (@hosts){      my ($graphret,$xs,$ys) = RRDs::graph      ("dummy",      '--start', $tasks[0][1],      '--end', $tasks[0][2],      '--font TITLE:20:"WenQuanYi Zen Hei Mono"',      "DEF:maxping=$cfg->{General}{datadir}${host}.rrd:median:AVERAGE",      'PRINT:maxping:MAX:%le' );      my $ERROR = RRDs::error();      return "<div>RRDtool did not understand your input: $ERROR.</div>" if $ERROR;      $val = $graphret->[0] if $val < $graphret->[0];    }

Can't locate Sys/Syslog.pm in @INC (@INC contains: /usr/local/smokeping/thirdparty/lib/perl5/x86_64-linux-thread-multi /usr/local/smokeping/thirdparty/lib/perl5 ../lib /usr/local/smokeping/thirdparty/lib/perl5//x86_64-linux-thread-multi /usr/local/smokeping/thirdparty/lib/perl5/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ../lib/smokeping.pm line 16. BEGIN failed--compilation aborted at ../lib/Smo...

yum -y install perl-Sys-Syslog

 




原标题:Smokeping 监控部署及配置

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

国际包裹邮寄哪家便宜:https://www.goluckyvip.com/tag/100963.html
东莞专线国际物流:https://www.goluckyvip.com/tag/100964.html
常升国际物流有限公司:https://www.goluckyvip.com/tag/100965.html
国际港航物流:https://www.goluckyvip.com/tag/100966.html
ems国际快递流程:https://www.goluckyvip.com/tag/100967.html
国际ems快递流程:https://www.goluckyvip.com/tag/100968.html
皇家游轮航线 皇家邮轮旅游攻略:https://www.vstour.cn/a/408245.html
2017春节旅游攻略有吗:https://www.vstour.cn/a/408246.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流