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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
92
|
第
9
章
9.1
 
SNMP
之痛
如果你有系统或软件的背景,那么网络监控会让你感觉像是回到了石器时代。监控网络性
能的最大挑战就是你必须使用
SNMP
。
1
简单网络管理协议
(
SNMP
)在发布时是一个简单且具有革命性的协议,但在今天看来非
常深奥难懂。不幸的是,现状就是这样,所以让我们开始学习吧。
9.1.1
 什么是
SNMP
SNMP
是于
1988
年在
RFC 1067
标准下发布的用于监控和管理设备的协议。它被设计用
于监控和管理广泛的事物,通常在服务器和网络设备上使用。在一些年代久远的企业环境
中,
SNMP
用于服务器仍是常见的(第
8
章讨论过为什么这么做不好)。
当系统管理和软件工程领域在不断采用新方法用于监控和管理时,网络设备供应商却从未
真正这样做过。网络设备监控领域也曾有过断断续续的改进,
并且一些供应商甚至支持类
似
collectd
这样的来自服务器监控领域的工具,但总的来说,当涉及网络设备时,你是无
法摆脱
SNMP
的。这是个缓慢改变的过程,因此在某些替代
SNMP
的工具大行其道之前,
我们的确还需等待一些时间。
9.1.2
 它的工作原理是什么
SNMP
是一种基于
UDP
的协议,使用端口
161
和
162
。
Polling
(轮询)出现在
161
端口
(设备入站)上,而
Trap
(自陷)使用
162
端口(设备出站),我们很快就会讲解这两个术
语。有很多的
RFC
定义了
SNMP
的行为,但它们对你来说不是很重要。
SNMP
通信有两个关键概念:
代理
(
agent
)和
管理者
(
manager
)。代理是你希望从中获取
信息的设备,而管理者是接收信息的设备。代理是在要查询的网络设备的操作系统上运行 ...
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