Deployment and configuration of Smokeping monitoring and deployment of smokeping monitoring

Source: Internet
Author: User
Tags rrdtool install perl smokeping

Deployment and configuration of Smokeping monitoring and deployment of smokeping monitoring

For installation instructions, see:
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. 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 49 50 *** Presentation *** 51 charset = UTF-8 # support for displaying tree charts of Chinese characters and the diagram drawn by rrdtool. display Chinese 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 = 10 h 89 90 + detail 91 92 width = 1000 93 height = 200 94 unison_tolerance = 2 95 96 "Last 2 Hours" 2 h 97 "Last 24 Hours" 24 h 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/ response + boomer118 display_name = boomer119 color = effecff120 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.0000134 + Unicom135 136 menu = network connectivity monitoring 137 title = Monitoring Statistics 138 139 + Telecom140 menu = Telecom Network Monitoring 141 title = China Telecom Network Monitoring List 142 host =/Unicom/telecom/Telecom-xian/Unicom/telecom/Telecom-shanghai/Unicom/telecom/Telecom-sichuan/Unicom/telecom/Telecom-shenzhen /Unicom/Telecom/telecom-Hangzhou/Unicom/Telecom/telecom-changsha/Unicom/Telecom/telecom-wuhan/Unicom/Telecom/telecom-jiangsu/Unicom/Telecom/telecom /Unicom/Telecom/telecom-fujiian/Unicom/Telecom/telecom-neimeng/Unicom/Telecom/telecom-example/Unicom/Telecom/telecom-Example /Unicom/Telecom/telecom-hubei/Unicom/Telecom/telecom-beijing143 144 + + telecom-xian145 menu = Xi'an Telecom 146 title = Xi'an telecom 147 alerts = someloss148 host = 61.150.91.55149 150 + + + telecom-shanghai151 menu = Shanghai Telecom 152 title = Shanghai Telecom 153 alerts = someloss154 host = 180.169.22.226155 156 ++ telecom-sichuan157 menu = Sichuan Telecom 158 title = Sichuan Telecom 159 alerts = someloss160 host = 211.149.224.160161 162 + + telecom-shenzhen163 menu = Shenzhen Telecom 164 title = Shenzhen Telecom 165 alerts = someloss166 host = 183.63.53.120167 168 + + telecom-zhejiang169 menu = Zhejiang Telecom 170 title = Zhejiang Telecom 171 alerts = someloss172 host = Hangzhou 174 + + telecom-changsha175 menu = Changsha Telecom 176 title = Changsha Telecom 177 alerts = someloss178 host = 124.232.150.171179 180 + + telecom-wuhan181 menu = Wuhan Telecom 182 title = Wuhan Telecom 183 alerts = someloss184 host = california 186 + + telecom-jiangsu187 menu = Jiangsu Telecom 188 title = Jiangsu Telecom 189 alerts = someloss190 host = 58.215.186.208191 192 + + telecom-chongqing193 menu = Chongqing Telecom 194 title = Chongqing Telecom 195 alerts = someloss196 host = 219.153.71.238197 198 + + telecom-fujian199 menu = Fujian Telecom 200 title = Fujian Telecom 201 alerts = someloss202 host = 218.6.9.4203 204 + + telecom-neimeng205 menu = Inner Mongolia Telecom 206 title = Inner Mongolia Telecom 207 alerts = someloss208 host = 101.53.100.113209 210 ++ telecom-xinjiang211 menu = Urumqi Telecom 212 title = Urumqi Telecom 213 alerts = someloss214 host = 124.119.87.204215 216 + + + telecom-guizhou217 menu = Guizhou Telecom 218 title = Guizhou Telecom 219 alerts = someloss220 host = 222.87.128.7221 222 + + telecom-tianjin223 menu = Tianjin Telecom 224 title = Tianjin Telecom 225 alerts = someloss226 host = 221.238.254.118227 228 + + + telecom-hubei229 menu = Shiyan Telecom 230 title = shiyan Telecom 231 alerts = someloss1_host = 61.183.41.197233 234 ++ telecom-beijing235 menu = Beijing Telecom 236 title = Beijing Telecom 237 alerts = someloss238 host = 119.90.3.2239 240 + + Mobile241 menu = Mobile Network Monitoring 242 title = Mobile Network Monitoring List 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 = Zhejiang Mobile 247 title = Zhejiang Mobile 248 alerts = someloss249 host = 211.140.143.3250 251 + + + mobile-shanghai252 menu = Shanghai Mobile 253 title = shanghai Mobile 254 alerts = someloss255 host = 117.135.137.82256 257 + + mobile-tianjin258 menu = Tianjin mobile 259 title = Tianjin mobile 260 alerts = someloss261 host = 117.131.207.163262 263 + + + mobile-jinan264 menu = Jinan mobile 265 title = Jinan mobile 266 alerts = someloss267 host = 223.99.238.1020.8 269 + + mobile-beijing270 menu = Beijing Mobile 271 title = Beijing Mobile 272 alerts = someloss273 host = 111.13.56.26274 275 + + + mobile-suzhou276 menu = Suzhou mobile 277 title = Suzhou mobile 278 alerts = someloss279 host = ceiling 281 + + mobile-wuhan282 menu = Wuhan mobile 283 title = Wuhan mobile 284 alerts = someloss285 host = 111.47.111.229286 287 + + + mobile-shenyang288 menu = Shenyang mobile 289 title = Shenyang mobile 290 alerts = someloss291 host = 223.100.7.69292 293 + + mobile-quanzhou294 menu = Quanzhou mobile 295 title = Quanzhou mobile 296 alerts = someloss297 host = 112.5.16.13298 299 + + + mobile-xiamen300 menu = Xiamen mobile 301 title = Xiamen mobile 302 alerts = someloss303 host = 218.207.194.425304 305 + Unicom306 menu = Unicom network monitoring 307 title = Unicom network monitoring list 308 host =/Unicom /unicom-dalian/Unicom/unicom-beijing/Unicom/unicom-jinan/Unicom/unicom-shanghai/Unicom/unicom-henan/Unicom /unicom-heilongjiang/Unicom/unicom-tianjin/Unicom/unicom/Unicom-shijiazhuang/Unicom/unicom/unicom-taiyuan309 310 + + unicom-dalian311 menu = Dalian Unicom 312 title = Dalian Unicom 313 alerts = someloss314 host = 218.61.8.10315 316 + + unicom-beijing317 menu = Beijing Unicom 318 title = Beijing Unicom 319 alerts = someloss320 host = 118.186.222.66321 322 + + + unicom-jinan323 menu = Jinan Unicom 324 title = jinan Unicom 325 alerts = someloss326 host = 124.133.28.7327 328 + + unicom-shanghai329 menu = Shanghai Unicom 330 title = Shanghai Unicom 331 alerts = someloss332 host = 58.246.45.89333 334 + + + unicom-henan335 menu = Henan Unicom 336 title = Henan Unicom 337 alerts = someloss338 host = large 340 + + unicom-heilongjiang341 menu = Heilongjiang Unicom 342 title = Heilongjiang Unicom 343 alerts = someloss344 host = 125.211.202.138345 346 + + + unicom-tianjin347 menu = Tianjin unicom 348 title = Tianjin Unicom 349 alerts = someloss350 host = Qingdao 352 + + unicom-shijiazhuang353 menu = Shijiazhuang Unicom 354 title = Shijiazhuang Unicom 355 alerts = someloss356 host = 110.249.209.130357 358 + + + unicom-taiyuan359 menu = Taiyuan Unicom 360 title = Taiyuan Unicom 361 alerts = someloss1_host = 221.204.238.54

Effect display:

FAQs:

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

Check whether the attributes of the smokeping_secrets.dist file are 400. If not, modify the attributes as follows: note that the attributes of the etc/smokeping_secrets.dist file must be 400 chmod 400 smokeping_secrets.distservice

Chinese settings:

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 .. /lib/Smo...

yum -y install perl-Sys-Syslog

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.