差異處
這裏顯示兩個版本的差異處。
| 下次修改 | 前次修改 | ||
| tech:zabbix:pgbouncer [2015/10/05 19:13] – 建立 jonathan | tech:zabbix:pgbouncer [2015/10/05 20:14] (目前版本) – jonathan | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== pgbouncer 納入 Zabbix 監控 ====== | ||
| + | |||
| + | ===== @pgbouncer Server 設定程序 ===== | ||
| + | * 新增 connection.pl <code sh> | ||
| + | vi / | ||
| + | </ | ||
| + | # | ||
| + | # Date : 19:44 2015/10/5 | ||
| + | # Author : Jonathan Tsai < | ||
| + | # Desc : Get connection# for Zabbix | ||
| + | |||
| + | $chkport=!defined($ARGV[0])?" | ||
| + | $mrtgline1 = `netstat -n | grep ": | ||
| + | print($mrtgline1); | ||
| + | </ | ||
| + | chmod a+x / | ||
| + | </ | ||
| + | * 新增 UserParameters_pgbouncer_connection <code sh> | ||
| + | vi / | ||
| + | </ | ||
| + | UserParameter=PgBouncer.Connection[*],/ | ||
| + | </ | ||
| + | service zabbix-agent restart | ||
| + | </ | ||
| + | |||
| + | ==== @Zabbix Server 設定程序 ===== | ||
| + | * 將 zbx_pgbouncer_templates.xml 匯入至 Zabbix Server → Configuration → Templates → Import | ||
| + | < | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== 參考網址 ===== | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | {{tag> | ||