- Learning NAGIOS 3.0
- Wojciech Kocjan
- 635字
- 2021-08-25 18:05:37
Introduction to Nagios
According to WikiPedia (http://en.wikipedia.org/wiki/System_Monitoring) Nagios is a tool for system monitoring. This means that it constantly checks the status of machines and various services on those machines. The main purpose of system monitoring is to detect and report on any system not working properly, as soon as possible, so that, you are aware of the problem before the user runs into it.
Nagios does not perform any host or service checks on its own. It uses plugins to perform the actual checks. This makes it a very modular and flexible solution for performing machine and service checks.
Objects monitored by Nagios are split into two categories: hosts and services. Hosts are physical machines (servers, routers, workstations, printers and so on), while services are particular functionalities, for example, a web server (an httpd process on a machine) can be defined as a service to be monitored. Each service is associated with a host it is running on. In addition, both machines and services can be grouped into host and service groups, accordingly. We will look into the details of each of these types of objects in the next section.

Nagios has two major strengths when it comes to scanning—first of all, instead of monitoring values, it only uses four states to describe status: OK
, WARNING
, CRITICAL,
and UNKNOWN
. The approach of only offering abstract states allows administrators to ignore monitoring values and just decide on what the warning/critical limits are. Having a strict limit to watch out for is much better as you always catch a problem regardless of whether it turns from a warning to a critical limit in 15 minutes or in a week. This is exactly what Nagios does. If you are monitoring a numeric value such as the amount of disk space and CPU usage, you can define thresholds for the values which are considered correct, a warning, or a failure. For example, system administrators tend to ignore things such as a slow decline in storage space. People often ignore it until a critical process runs out of disk space.
Another benefit is that a report states the number of services that are up and running in both warning
state and critical
state. Such a report offers a good overview of your infrastructure status. Nagios also offers similar reports for host groups and service groups, say when any critical service or database server is down. Such a report can also help prioritize what needs to be dealt with first, and which problems can be handled later.
Nagios performs all of its checks using plugins. These are external components to which Nagios passes information on what should be checked and what the warning and critical limits are. Plugins are responsible for doing the checks and analyzing the results. The output from such a check is a status (OK
, WARNING
, CRITICAL,
or UNKNOWN
) and additional text providing information on the service in detail. This text is primarily intended for system administrators to be able to read a detailed status of a service.
Nagios not only offers a core system for monitoring, but also offers a set of standard plugins in a separate package (see http://nagiosplugins.org/ for more details). These plugins allow checks for almost all of the services your company might have. Refer to Chapter 4, Overview of Nagios Plugins, for detailed information on plugins that are developed along with Nagios. If you need to perform a specific check (for example, to connect to a web service and invoke methods), it is very easy to write your own plugins. And that's not all—they can be written in any language, and it takes less than a quarter of the time it takes to write a complete check command! Chapter 11 Extending Nagios talks about this in more detail.
- Excel函數、公式、圖表、數據處理從新手到高手
- 中文版3ds Max 2013-VRay效果圖制作從新手到高手
- 做好PPT就靠這幾招:圖解力+吸引力+說服力
- AutoCAD 2018實用教程(第5版)
- 商用級AIGC繪畫創作與技巧(Midjourney+Stable Diffusion)
- AutoCAD 2020中文版從入門到精通(標準版)
- SolidWorks 2021中文版機械設計從入門到精通
- R Graph Cookbook
- 好的PPT會說話:如何打造完美幻燈片
- PPT 2016幻燈片設計與制作從入門到精通
- 中文版Premiere Pro CC實用教程
- 3ds Max & Unreal Engine 4:VR三維建模技術實例教程(附VR模型)
- Django 1.0 Website Development
- Adobe創意大學After Effects產品專家認證標準教材(CS6修訂版)
- Procreate+ SketchUp +Photoshop建筑設計手繪表現技法