nagios_server: try and adjust for all the aws copr instances

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-02-21 19:44:39 +00:00 committed by Pierre-Yves Chibon
parent 46d9f4275d
commit 9a255e3c41
5 changed files with 27 additions and 3 deletions

View file

@ -159,7 +159,5 @@ exclude_hostgroups:
- dbgserver_stg
- retrace_stg
- retrace_stg_aws
- copr_aws
- copr_dev_aws
- virt_guest
- virt_host

View file

@ -1416,3 +1416,11 @@ os-proxy02.fedorainfracloud.org
[ec2]
proxy30.fedoraproject.org
copr-be.aws.fedoraproject.org
copr-be-dev.aws.fedoraproject.org
copr-dist-git.aws.fedoraproject.org
copr-dist-git-dev.aws.fedoraproject.org
copr-fe.aws.fedoraproject.org
copr-fe-dev.aws.fedoraproject.org
copr-keygen.aws.fedoraproject.org
copr-keygen-dev.aws.fedoraproject.org

View file

@ -4,3 +4,7 @@ define command{
command_line $USER1$/check_ssh -H $HOSTADDRESS$
}
define command{
command_name check-host-alive-ssh
command_line $USER1$/check_ssh -H $HOSTADDRESS$
}

View file

@ -14,6 +14,20 @@ define host {
register 0
}
define host {
name aws
check_command check-host-alive-ssh
max_check_attempts 8
checks_enabled 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 15
notifications_enabled 1
notification_options d,r
contact_groups fedora-sysadmin-ircbot
register 0
}
define host {
name mincheck
check_command check-host-alive4

View file

@ -4,7 +4,7 @@ define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
use aws
{% endif %}
host_name {{ host }}