check_postgres 是一个基于 Perl 的脚本(“check_postgres.pl”),提供 PostgreSQL 的监控功能,并以 Nagios / Icinga 或 MRTG 格式输出。
check_postgres 自 2007 年开始开发(首次提交:e355a71b),由 Bucardo 维护。
示例
简单检查特定数据库的大小
$ ./check_postgres.pl -H localhost -p 5433 -u postgres \ --action database_size \ --warning='10MB' \ --include=postgres POSTGRES_DATABASE_SIZE OK: DB "postgres" (host:localhost) (port=5433) postgres: 7574175 (7397 kB) | time=0.01s postgres=7574175;10485760
参考资料
- 主页: check_postgres
- 文档: check_postgres.pl
- GitHub: check_postgres
分类
另请参阅
Zabbix
