nagios: Make the pageable/not/flaky tri-state clearer.

This commit is contained in:
Alex Vandiver 2022-06-13 14:58:37 -07:00 committed by Alex Vandiver
parent c74f195fba
commit bc4f4b4862
3 changed files with 10 additions and 5 deletions

View File

@ -25,6 +25,11 @@ define hostgroup {
alias Servers for whom we do not want to page alias Servers for whom we do not want to page
} }
define hostgroup {
hostgroup_name flaky_servers
alias Servers for whom we do not page, and have flakier net
}
define hostgroup { define hostgroup {
hostgroup_name web hostgroup_name web
alias Web servers alias Web servers

View File

@ -16,7 +16,7 @@ define service {
define service { define service {
use generic-service use generic-service
hostgroup_name zmirror hostgroup_name flaky_servers
service_description SSH for flaky machines service_description SSH for flaky machines
check_command check_ssh check_command check_ssh
normal_check_interval 2 normal_check_interval 2
@ -43,7 +43,7 @@ define service {
define service { define service {
use generic-service use generic-service
hostgroup_name zmirror hostgroup_name flaky_servers
service_description remote disk for flaky machines service_description remote disk for flaky machines
check_command check_remote_disk!20%!10% check_command check_remote_disk!20%!10%
normal_check_interval 2 normal_check_interval 2
@ -79,7 +79,7 @@ define service {
define service { define service {
use generic-service use generic-service
hostgroup_name zmirror hostgroup_name flaky_servers
service_description remote load for flaky machines service_description remote load for flaky machines
check_command check_remote_load!22!5.0,4.0,3.0!10.0,6.0,4.0 check_command check_remote_load!22!5.0,4.0,3.0!10.0,6.0,4.0
normal_check_interval 2 normal_check_interval 2

View File

@ -34,7 +34,7 @@ define host{
host_name <%= host %> host_name <%= host %>
alias <%= host %> alias <%= host %>
address <%= host %>.<%= @default_host_domain %> address <%= host %>.<%= @default_host_domain %>
hostgroups all,non_aws_host,zmirror,zmirror_main hostgroups all,non_aws_host,zmirror,zmirror_main,flaky_servers
} }
<% end -%> <% end -%>
@ -44,7 +44,7 @@ define host{
host_name <%= host %> host_name <%= host %>
alias <%= host %> alias <%= host %>
address <%= host %>.<%= @default_host_domain %> address <%= host %>.<%= @default_host_domain %>
hostgroups all,non_aws_host,zmirror,zmirrorp hostgroups all,non_aws_host,zmirror,zmirrorp,flaky_servers
} }
<% end -%> <% end -%>