Monitor postgres1

The fact that we weren't already was an oversight on my part.

(imported from commit 2082ae79ac2884f26e98b430bcb08c15938a26c0)
This commit is contained in:
Zev Benjamin 2013-07-16 17:45:32 -04:00
parent 431acdb186
commit 14e58ff6e4
4 changed files with 32 additions and 14 deletions

View File

@ -55,3 +55,8 @@ rundir /var/run/munin
address 127.0.0.1
port 5007
use_node_name yes
[postgres1]
address 127.0.0.1
port 5008
use_node_name yes

View File

@ -29,3 +29,8 @@ define hostgroup {
hostgroup_name zmirror
alias Zephyr Mirror Servers
}
define hostgroup {
hostgroup_name postgres
alias PostgreSQL Servers
}

View File

@ -48,10 +48,18 @@ define host{
define host{
use generic-host
host_name postgres
alias postgres
address postgres.humbughq.com
hostgroups all,pageable_servers
host_name postgres0
alias postgres0
address postgres0.humbughq.com
hostgroups all,postgres,pageable_servers
}
define host{
use generic-host
host_name postgres1
alias postgres1
address postgres1.humbughq.com
hostgroups all,postgres,pageable_servers
}
define host{

View File

@ -115,7 +115,7 @@ define service {
use generic-service
service_description Check postgres autovac_freeze
check_command check_postgres!22!autovac_freeze
host postgres
host postgres0
contact_groups admins
}
@ -123,7 +123,7 @@ define service {
use generic-service
service_description Check postgres backends
check_command check_postgres!22!backends
host postgres
hostgroup postgres
contact_groups admins
}
@ -131,7 +131,7 @@ define service {
use generic-service
service_description Check postgres connection
check_command check_postgres!22!connection
host postgres
hostgroup postgres
contact_groups admins
}
@ -139,7 +139,7 @@ define service {
use generic-service
service_description Check postgres hitratio
check_command check_postgres!22!hitratio
host postgres
hostgroup postgres
contact_groups admins
}
@ -147,7 +147,7 @@ define service {
use generic-service
service_description Check postgres locks
check_command check_postgres!22!locks
host postgres
hostgroup postgres
contact_groups admins
}
@ -155,7 +155,7 @@ define service {
use generic-service
service_description Check postgres query_time
check_command check_postgres_alert_args!22!query_time!20 seconds!40 seconds
host postgres
hostgroup postgres
contact_groups admins
}
@ -163,7 +163,7 @@ define service {
use generic-service
service_description Check postgres sequence
check_command check_postgres!22!sequence
host postgres
hostgroup postgres
contact_groups admins
}
@ -171,7 +171,7 @@ define service {
use generic-service
service_description Check postgres timesync
check_command check_postgres!22!timesync
host postgres
hostgroup postgres
contact_groups admins
}
@ -179,7 +179,7 @@ define service {
# use generic-service
# service_description Check postgres txn_idle
# check_command check_postgres_alert_args!22!txn_idle!20 seconds!40 seconds
# host postgres
# hostgroup postgres
# contact_groups admins
# }
@ -187,7 +187,7 @@ define service {
# use generic-service
# service_description Check postgres txn_time
# check_command check_postgres_alert_args!22!txn_time!20 seconds!40 seconds
# host postgres
# hostgroup postgres
# contact_groups admins
# }