Nagios

监控

定义

一款开源基础设施监控工具,用于监视主机、服务和网络设备,并在组件发生故障或恢复时发送告警。Nagios是一个基础性的监控平台,拥有庞大的插件生态系统。

How Nagios Works

Nagios operates on a plugin-based architecture where a central daemon periodically executes check scripts against hosts and services. Each plugin returns an exit code — 0 (OK), 1 (WARNING), 2 (CRITICAL), or 3 (UNKNOWN) — which Nagios translates into alert states. When a threshold is crossed, Nagios notifies contacts via email, SMS, or custom handlers, and can trigger automated recovery actions.

Active vs. Passive Checks

Nagios supports two check modes. Active checks are scheduled by the Nagios daemon and run at defined intervals. Passive checks allow external systems to push results into Nagios, which is useful for FirewallA network security device or software that monitors and filters incoming and outgoing traffic based on predefined rules. Firewalls can block traffic by IP address, port number, protocol, or application-layer content.-restricted hosts or batch jobs that self-report completion status. This flexibility makes Nagios effective across both internal networks and segmented DMZDemilitarized Zone. A network segment that sits between an organization's internal network and the public internet, hosting public-facing services (web servers, email) while isolating the internal network from direct external access. environments.

Nagios in Modern Infrastructure

While Nagios predates cloud-native tooling, it remains widely deployed due to its stability and the enormous ecosystem of community plugins. It pairs well with SNMPSimple Network Management Protocol. A protocol for monitoring and managing network devices (routers, switches, servers) by collecting metrics and configuration data. Agents on devices report to a central SNMP manager. for network device monitoring and with SyslogA standard protocol (RFC 5424) for transmitting log messages from network devices, servers, and applications to a central log collector. Syslog messages include severity levels from emergency (0) to debug (7). aggregation for log correlation. Many teams run Nagios alongside newer tools like GrafanaAn open-source analytics and visualization platform that creates dashboards from time-series data sources like Prometheus, InfluxDB, and Elasticsearch. Widely used for monitoring infrastructure, applications, and business metrics. for visualization, using Nagios as the alerting backbone while delegating dashboards to purpose-built platforms.

Open Port Checker

相关术语

监控 的更多内容