mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
nagios: Split postgres hostgroup into more fine-grained groups
(imported from commit ab5fcc0893fb8635defecdf3045a3ffdd5e26f14)
This commit is contained in:
@@ -33,9 +33,21 @@ define hostgroup {
|
|||||||
define hostgroup {
|
define hostgroup {
|
||||||
hostgroup_name postgres
|
hostgroup_name postgres
|
||||||
alias PostgreSQL Servers
|
alias PostgreSQL Servers
|
||||||
|
hostgroup_members postgres_appdb, postgres_other
|
||||||
}
|
}
|
||||||
|
|
||||||
define hostgroup {
|
define hostgroup {
|
||||||
hostgroup_name postgres_primary
|
hostgroup_name postgres_appdb
|
||||||
alias Primary PostgreSQL Servers
|
alias PostgreSQL App Servers
|
||||||
|
hostgroup_members postgres_appdb_primary
|
||||||
|
}
|
||||||
|
|
||||||
|
define hostgroup {
|
||||||
|
hostgroup_name postgres_other
|
||||||
|
alias PostgreSQL Servers for Misc Services
|
||||||
|
}
|
||||||
|
|
||||||
|
define hostgroup {
|
||||||
|
hostgroup_name postgres_appdb_primary
|
||||||
|
alias Primary PostgreSQL App Servers
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ define host{
|
|||||||
host_name postgres1
|
host_name postgres1
|
||||||
alias postgres1
|
alias postgres1
|
||||||
address postgres1.zulip.net
|
address postgres1.zulip.net
|
||||||
hostgroups all,postgres,pageable_servers
|
hostgroups all,postgres_appdb,pageable_servers
|
||||||
}
|
}
|
||||||
|
|
||||||
define host{
|
define host{
|
||||||
@@ -75,7 +75,7 @@ define host{
|
|||||||
host_name postgres2
|
host_name postgres2
|
||||||
alias postgres2
|
alias postgres2
|
||||||
address postgres2.zulip.net
|
address postgres2.zulip.net
|
||||||
hostgroups all,postgres,postgres_primary,pageable_servers
|
hostgroups all,postgres,postgres_appdb_primary,pageable_servers
|
||||||
}
|
}
|
||||||
|
|
||||||
define host{
|
define host{
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ define service {
|
|||||||
use generic-service
|
use generic-service
|
||||||
service_description Check postgres autovac_freeze
|
service_description Check postgres autovac_freeze
|
||||||
check_command check_postgres!22!autovac_freeze
|
check_command check_postgres!22!autovac_freeze
|
||||||
hostgroup postgres_primary
|
hostgroup postgres_appdb_primary
|
||||||
contact_groups admins
|
contact_groups admins
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user