# 使用 Homebrew, apt, apk, dnf, zypper 安装 check_postgres

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

## 安装

```sh
sudo av install brew:check_postgres
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install check_postgres
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install check-postgres
```

  证据: Debian stable package indexes: check-postgres from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- apk (92%):

```sh
sudo apk add check_postgres
```

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

- dnf (92%):

```sh
sudo dnf install check_postgres
```

  证据: Fedora Rawhide package metadata: check_postgres from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install check_postgres
```

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

## 软件包事实

- **软件包键:** brew:check_postgres
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/check_postgres>
- **版本:** 2.26.0
- **来源摘要:** Monitor Postgres databases
- **主页:** <https://bucardo.org/wiki/Check_postgres>
- **仓库:** <https://github.com/bucardo/check_postgres>
- **上游文档:** <https://bucardo.org/wiki/Check_postgres>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://bucardo.org/downloads/check_postgres-2.26.0.tar.gz>
- **最后更新:** 2026-06-22T14:03:01-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- check_postgres (cli)
- check_postgres (别名)

## 依赖

- libpq

## macOS 提供的库

- perl

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.26.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://bucardo.org/wiki/Check_postgres
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

check_postgres is a Perl monitoring plugin for PostgreSQL, designed primarily for Nagios but also documenting MRTG, Cacti, and simple output modes.

### 项目历史

The script copyright begins in 2007 under Greg Sabino Mullane. Its GitHub repository was created in May 2009, and the embedded documentation describes many PostgreSQL actions, output modes, rc-file support, and mailing lists for announcements and general development.

### 采用历史

The README gives both a quick Nagios-script installation path and a standard Perl Makefile.PL build path. The batch input records packaging across Homebrew, Alpine, Debian, Ubuntu, Fedora, and openSUSE families.

### 使用方式

Administrators use check_postgres actions to monitor connections, locks, bloat, replication, database size, transaction age, settings checksums, pgbouncer state, and many other PostgreSQL operational signals.

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

check_postgres is a classic ops package: a single Perl monitoring tool with many symlink-friendly subcommands, Nagios exit codes, packageable docs, and long-running compatibility concerns around PostgreSQL client binaries and credentials.

### 时间线

- 2007: Copyright period for check_postgres begins.
- 2009: GitHub repository created.
- 2009: Version 2.11.0 added .check_postgresrc support.
- 2017: 2.23.0 release published.
- 2023: 2.26.0 release published.
- 2025: README copyright range extends through 2025.

### Related projects

- PostgreSQL and psql are core runtime dependencies for many checks.
- Nagios, MRTG, and Cacti are documented output or integration targets.
- Bucardo hosts the official documentation and project pages.

### 来源

- <https://github.com/bucardo/check_postgres>
- <https://bucardo.org/check_postgres/check_postgres.pl.html>
- <https://raw.githubusercontent.com/bucardo/check_postgres/master/README.md>
- <https://raw.githubusercontent.com/bucardo/check_postgres/master/check_postgres.pl>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .check_postgresrc, ~/.check_postgresrc, /etc/check_postgresrc

## Credential files

- Unix: ~/.pgpass
- Windows: %APPDATA%\postgresql\pgpass.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** check_postgres
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - check-postgres - 2.26.0-2: normalized package name match | Debian stable package indexes: check-postgres from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | script for monitoring PostgreSQL databases | https://bucardo.org/check_postgres/
- Ubuntu apt - check-postgres - 2.26.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: check-postgres from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | script for monitoring PostgreSQL databases | https://bucardo.org/check_postgres/
- apk - check_postgres - 2.26.0-r0: normalized package name match | Alpine Linux edge package indexes: check_postgres from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | PostgreSQL monitoring script | https://bucardo.org/check_postgres/
- apk - check_postgres-doc - 2.26.0-r0: normalized package name match | Alpine Linux edge package indexes: check_postgres-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | PostgreSQL monitoring script (documentation) | https://bucardo.org/check_postgres/
- dnf - check_postgres - 2.25.0-17.fc45: normalized package name match | Fedora Rawhide package metadata: check_postgres from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | PostgreSQL monitoring script | https://bucardo.org/check_postgres/
- zypper - check_postgres - 2.26.0-1.17: normalized package name match | openSUSE Tumbleweed package metadata: check_postgres from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Postgres monitoring script | http://bucardo.org/wiki/Check_postgres
- zypper - monitoring-plugins-postgres - 2.26.0-1.17: normalized package name match | openSUSE Tumbleweed package metadata: monitoring-plugins-postgres from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Postgres monitoring script using check_postgres.pl | http://bucardo.org/wiki/Check_postgres


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [libpq](https://pkg.so/zh-hans/brew/libpq/) - Runtime dependency declared by Homebrew.
- [postgresql@14](https://pkg.so/zh-hans/brew/postgresql-14/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [postgresql@16](https://pkg.so/zh-hans/brew/postgresql-16/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [postgresql@17](https://pkg.so/zh-hans/brew/postgresql-17/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [postgresql@18](https://pkg.so/zh-hans/brew/postgresql-18/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [postgresql@15](https://pkg.so/zh-hans/brew/postgresql-15/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [postgis](https://pkg.so/zh-hans/brew/postgis/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [lazysql](https://pkg.so/zh-hans/brew/lazysql/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [postgrest](https://pkg.so/zh-hans/brew/postgrest/) - Shares pkgdb curated category or tags: cli, data, database, postgresql.
- [dexter](https://pkg.so/zh-hans/brew/dexter/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, libpq, postgres.
- [pgslice](https://pkg.so/zh-hans/brew/pgslice/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, databases, libpq.
- [pgsync](https://pkg.so/zh-hans/brew/pgsync/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, databases, libpq.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
