Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
30
|
第
3
章
我想到了一个简单的方法来尝试自动修复:首先设置一个检查,用于监测
SNMP
是否
失效(通过抓取任意的
OID
并观察是否超时,同时确定该设备可以通过
ICMP
访问)。
如果
SNMP
失效了,但是该设备仍然在网络上,那么一个脚本就会登录到传感器设备
上并将它重启。要是这个方法运行完美,那传感器在几秒之内就会重新上线并且恢复
所有工作。最重要的是没有人会再因为本来可以自动修复的事情吵醒了。
有几种途径可以实现自动修复,但是最常见且最直接的方法是将所有的标准化修复操作实
现到代码中,让监控系统执行对应的脚本,而不是通知某个人。如果尝试自动修复没有解
决问题,这时候就再发送一个告警。
3.2
 待命值班
对于待命值班(
on-call
),本书的读者中应该有许多人在职业生涯中的某一时刻曾经历过,
非正式的也算。对于那些没有经历过的人来说,待命值班就是当事情出错的时候会呼叫
你,并期望你做出响应。如果这个人一直是你,那你就一直处于待命值班状态(这样很不
好,我们稍后讨论)。
那些有过待命值班经验的人都知道待命值班有多糟糕。
1
假警报、含糊不清的告警以及持
续的救火信息全都困扰着你。几个月之后,你就会体会到待命值班会让你筋疲力尽,从而
导致一系列负面影响:易怒、睡眠不足、焦虑,等等。
实际上,并不是非得这样,我很乐意告诉你如何去纠正。既然无法避免计算机大半夜出现
问题,那我们可以避免被计算机不必要地唤醒。下面会讨论我们能做些什么。
3.2.1
 修正假警报
对很多人来说,假警报只不过是监控领域中日常生活的一方面。完全准确的告警真的是一 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750