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