- Nagios Core Administrators Cookbook
- Tom Ryder
- 395字
- 2021-08-05 18:11:59
Introduction
Once hosts and services are configured in Nagios Core, its behavior is primarily dictated by the checks it makes to ensure that hosts and services are operating as expected, and the state it concludes these hosts and services must be in as a result of those checks.
How often it's appropriate to check hosts and services, and on what basis it's appropriate to flag a host or service as having problems, depends very much on the nature of the service and the importance of it running all the time. If a host on the other side of the world is being checked with PING, and during busy periods its round trip time is over 100ms, then this may not actually be a cause for concern at all, and perhaps not something to even flag a WARNING
state over, let alone a CRITICAL
one.
However, if the same host were on the local network where it would be appropriate to expect round trip times of less than 10ms, then a round trip time of more than 100ms could well be considered a grave cause for concern, signaling a packet storm or other problem with the local network, and we would want to notify the appropriate administrators immediately. Similarly, for hosts such as web servers, we may not be concerned by a response time of more than a second for a page on a busy budget shared web host for customers. But if the response time for the corporate website or a dedicated colocation customer was getting that bad, it might well be something to notify the web server administrator about.
Hosts and services are therefore not all created equal. Nagios Core provides several ways to define behaviors with more precision, as follows:
- How often a host or service should be checked with its appropriate
check_command
plugin - How bad a check's results have to be before a
WARNING
orCRITICAL
problem is flagged, if at all - Defining a downtime period for a host or service, so that Nagios Core knows not to expect it to operate during a specified period of time, often for upgrades or other maintenance
- Whether to automatically tolerate flapping, or hosts and services seeming to go up and down a lot
This chapter will use some common instances of problems with the preceding behaviors to give examples showing how to configure them.
- DB29forLinux,UNIX,Windows數據庫管理認證指南
- Python金融大數據分析(第2版)
- 深入淺出MySQL:數據庫開發、優化與管理維護(第2版)
- 數據庫原理與應用(Oracle版)
- Starling Game Development Essentials
- 數據挖掘原理與SPSS Clementine應用寶典
- 大數據架構商業之路:從業務需求到技術方案
- 中文版Access 2007實例與操作
- 數據挖掘競賽實戰:方法與案例
- Unity for Architectural Visualization
- 數據之美:一本書學會可視化設計
- 數據庫原理及應用:SQL Server 2016
- 云原生架構:從技術演進到最佳實踐
- 數據挖掘:實用案例分析
- 實用計算機基礎