# 使用 Homebrew, apk, dnf, MacPorts, pacman, zypper 安装 nagios-plugins

查看 nagios-plugins 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:nagios-plugins
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nagios-plugins
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nagios-plugins
```

  证据: MacPorts ports tree: net/nagios-plugins/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add nagios-plugins
```

  证据: Alpine Linux edge package indexes: nagios-plugins from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install nagios-plugins
```

  证据: Fedora Rawhide package metadata: nagios-plugins from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S monitoring-plugins
```

  证据: Arch Linux sync databases: monitoring-plugins from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install monitoring-plugins
```

  证据: openSUSE Tumbleweed package metadata: monitoring-plugins from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:nagios-plugins
- **软件包管理器:** Homebrew
- **版本:** 2.5
- **来源摘要:** Plugins for the nagios network monitoring system
- **主页:** <https://www.nagios-plugins.org/>
- **仓库:** <https://github.com/nagios-plugins/nagios-plugins>
- **最后更新:** 2026-06-22T14:05:34-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- check_apt (别名)
- check_breeze (别名)
- check_by_ssh (别名)
- check_clamd (别名)
- check_cluster (别名)
- check_dig (别名)
- check_disk (别名)
- check_disk_smb (别名)
- check_dns (别名)
- check_dummy (别名)
- check_file_age (别名)
- check_flexlm (别名)
- check_ftp (别名)
- check_http (别名)
- check_ide_smart (别名)
- check_ifoperstatus (别名)
- check_ifstatus (别名)
- check_imap (别名)
- check_ircd (别名)
- check_jabber (别名)
- check_load (别名)
- check_log (别名)
- check_mailq (别名)
- check_mrtg (别名)
- check_mrtgtraf (别名)
- check_nagios (别名)
- check_nntp (别名)
- check_nntps (别名)
- check_nt (别名)
- check_ntp (别名)
- check_ntp_peer (别名)
- check_ntp_time (别名)
- check_nwstat (别名)
- check_oracle (别名)
- check_overcr (别名)
- check_ping (别名)
- check_pop (别名)
- check_procs (别名)
- check_real (别名)
- check_rpc (别名)
- check_sensors (别名)
- check_simap (别名)
- check_smtp (别名)
- check_spop (别名)
- check_ssh (别名)
- check_ssl_validity (别名)
- check_ssmtp (别名)
- check_swap (别名)
- check_tcp (别名)
- check_time (别名)
- check_udp (别名)
- check_ups (别名)
- check_uptime (别名)
- check_users (别名)
- check_wave (别名)
- negate (别名)
- remove_perfdata (别名)
- urlize (别名)
- utils.pm (别名)
- utils.sh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.5
## 项目历史与用法

Nagios Plugins is the official plugin collection for the Nagios monitoring architecture: checks such as `check_http`, `check_disk`, `check_ping`, `check_ssh`, `check_load`, and many more. Its history is tied directly to Nagios itself and to the design choice that monitoring checks are external executables with standardized output, thresholds, performance data, and return codes.

### 项目历史

Nagios traces its origin to Ethan Galstad's 1996 MS-DOS paging tool and the 1999 open-source NetSaint release. The Nagios history page says plugins that were originally distributed with NetSaint were soon spun off as a separate NetSaint Plugins project; in 2002 NetSaint was renamed Nagios and NetSaint Plugins development moved to the Nagios Plugins project. The current GitHub repository was created on January 16, 2014, but the codebase and plugin convention are much older.

### 采用历史

Nagios Plugins became important because Nagios delegated resource-specific checks to plugins, allowing the core scheduler to monitor almost anything that could be automated. Official docs list network services, system resources, Unix/Linux, Windows and NetWare servers, routers, switches, and community plugins as part of the ecosystem. Homebrew reported only 451 installs over 365 days on July 1, 2026, but that understates adoption because Nagios deployments usually install plugins through Linux distributions, source packages, monitoring appliances, or bundled Nagios stacks.

### 使用方式

Administrators call plugins directly while testing and then wire the same command into Nagios service definitions. Each plugin prints a short status line to stdout and exits 0 for OK, 1 for Warning, 2 for Critical, or 3 for Unknown. The shared options pattern matters in day-to-day use: `-H` for host, `-w` and `-c` for thresholds, `-t` for timeout, `-v` for verbosity, and `--help` or `--usage` for plugin-specific syntax. Performance data after `|` feeds graphing and long-term metrics.

### 为什么软件包爱好者会关心

The package is a foundational example of a stable CLI plugin ABI. The individual checks are ordinary executables, but the exit-code and output contract let Nagios, Icinga-style systems, wrappers, and custom scripts compose checks written in C, shell, Perl, Python, or anything else. For package maintainers, it is also a bundle package: installing one formula drops a fleet of `check_*` tools into Homebrew's sbin.

### 时间线

- 1996: Ethan Galstad creates the early paging/checking tool that becomes Nagios's architectural seed.
- 1999: NetSaint is released as open source and the plugin code is soon spun out as a separate project.
- 2002: NetSaint is renamed Nagios and NetSaint Plugins development moves to Nagios Plugins.
- 2014-01-16: current GitHub repository created.
- 2026-03-31: Nagios Plugins 2.5 released.
- 2026-07-01: Homebrew API reported 451 installs over 365 days.

### Related projects

- Nagios Core
- Nagios XI
- Nagios Exchange
- Icinga
- Monitoring Plugins
- NRPE
- NCPA

### 来源

- <https://api.github.com/repos/nagios-plugins/nagios-plugins>
- <https://api.github.com/repos/nagios-plugins/nagios-plugins/releases/latest>
- <https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/plugins.html>
- <https://formulae.brew.sh/api/formula/nagios-plugins.json>
- <https://formulae.brew.sh/formula/nagios-plugins>
- <https://github.com/nagios-plugins/nagios-plugins>
- <https://nagios-plugins.org/>
- <https://nagios-plugins.org/doc/guidelines.html>
- <https://nagios-plugins.org/doc/man/index.html>
- <https://www.nagios.org/about/history/>


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- infrastructure mutation or orchestration signal

## 其他软件包管理器记录

- apk - nagios-plugins - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Plugins for Nagios to check services on hosts | https://nagios-plugins.org/
- apk - nagios-plugins-all - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-all from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Metapackage that installs *all* Nagios plugins from the nagios-plugins package | https://nagios-plugins.org/
- apk - nagios-plugins-breeze - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-breeze from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_breeze | https://nagios-plugins.org/
- apk - nagios-plugins-by_ssh - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-by_ssh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_by_ssh | https://nagios-plugins.org/
- apk - nagios-plugins-cluster - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-cluster from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_cluster | https://nagios-plugins.org/
- apk - nagios-plugins-dbi - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-dbi from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_dbi | https://nagios-plugins.org/
- apk - nagios-plugins-dhcp - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-dhcp from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_dhcp | https://nagios-plugins.org/
- apk - nagios-plugins-dig - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-dig from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_dig | https://nagios-plugins.org/
- apk - nagios-plugins-disk - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-disk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_disk | https://nagios-plugins.org/
- apk - nagios-plugins-disk_smb - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-disk_smb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_disk_smb | https://nagios-plugins.org/
- apk - nagios-plugins-dns - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-dns from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_dns | https://nagios-plugins.org/
- apk - nagios-plugins-dummy - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-dummy from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_dummy | https://nagios-plugins.org/
- apk - nagios-plugins-file_age - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-file_age from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_file_age | https://nagios-plugins.org/
- apk - nagios-plugins-fping - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-fping from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_fping | https://nagios-plugins.org/
- apk - nagios-plugins-hpjd - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-hpjd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_hpjd | https://nagios-plugins.org/
- apk - nagios-plugins-http - 2.5-r0: normalized package name match | Alpine Linux edge package indexes: nagios-plugins-http from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Nagios plugin check_http | https://nagios-plugins.org/


## Combined YAML source

View the package source record on GitHub. [combined/nagios-plugins.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nagios-plugins.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
