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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
86
|
第
8
章
~$ ntpstat
unsynchronised
polling server every 64 s
当状态是同步时:
~$ ntpstat
synchronised to NTP server (96.244.96.19) at stratum 3
time correct to within 7973 ms
polling server every 64 s
巧妙之处在于
ntpstat
的退出码对应着是否同步,这使得监控起来更容易:
0
代表同步,
而
1
代表不同步。使用一个
shell
脚本或某些更高级的应用程序(例如
collectd
)可以很直
观地进行监控。
如果运行着自己的
NTP
服务器,你还有很多指标可以查看,但这种情况并不常见。如果
确实运行着
NTP
服务器,你还需要关注对等点和服务器之间的偏移量(
ntpdate
提供相关
信息)。
8.11
 其他企业基础设施
对于运行传统企业基础设施的人来说,还有两件事是处于基于
Web
的环境中的人不会费心
的:
DHCP
和
SMTP
。
8.11.1
 
DHCP
这里有两件事情需要关注:
DHCP
服务器发放租赁以及
DHCP
池是否有足够的租赁容量。
如果在
Linux
上运行
DHCP
,很可能你使用的是
ISC
的
DHCPd
。不幸的是,因为
DHCPd
暴露性能数据的方式存在问题,所以要对其进行恰当的监控非常困难。换句话说,你可能
需要在其上面多花点时间。
租赁信息存储在
/var/lib/dhcpd.leases
(取决于你的发行版,路径可能不同)中。这个文件
将新租赁追加到末尾,所以完全有可能(并且常常)该文件针对同一个设备有两个或更多 ...
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