Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiverbc4f4b486278
diff --git a/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg b/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
index 1d1073f0e9d..6ddbbf0af5d 100644
--- a/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
+++ b/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
@@ -25,6 +25,11 @@ define hostgroup {
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 {
hostgroup_name web
alias Web servers
diff --git a/puppet/zulip_ops/files/nagios4/conf.d/services.cfg b/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
index 92358469671..c3ff49fe831 100644
--- a/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
+++ b/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
@@ -16,7 +16,7 @@ define service {
define service {
use generic-service
- hostgroup_name zmirror
+ hostgroup_name flaky_servers
service_description SSH for flaky machines
check_command check_ssh
normal_check_interval 2
@@ -43,7 +43,7 @@ define service {
define service {
use generic-service
- hostgroup_name zmirror
+ hostgroup_name flaky_servers
service_description remote disk for flaky machines
check_command check_remote_disk!20%!10%
normal_check_interval 2
@@ -79,7 +79,7 @@ define service {
define service {
use generic-service
- hostgroup_name zmirror
+ hostgroup_name flaky_servers
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
normal_check_interval 2
diff --git a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
index 4210b590d44..4daf9ef3416 100644
--- a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
+++ b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
@@ -34,7 +34,7 @@ define host{
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
- hostgroups all,non_aws_host,zmirror,zmirror_main
+ hostgroups all,non_aws_host,zmirror,zmirror_main,flaky_servers
}
<% end -%>
@@ -44,7 +44,7 @@ define host{
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
- hostgroups all,non_aws_host,zmirror,zmirrorp
+ hostgroups all,non_aws_host,zmirror,zmirrorp,flaky_servers
}
<% end -%>