nagios_server: try and adjust for all the aws copr instances
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
46d9f4275d
commit
9a255e3c41
5 changed files with 27 additions and 3 deletions
|
@ -159,7 +159,5 @@ exclude_hostgroups:
|
||||||
- dbgserver_stg
|
- dbgserver_stg
|
||||||
- retrace_stg
|
- retrace_stg
|
||||||
- retrace_stg_aws
|
- retrace_stg_aws
|
||||||
- copr_aws
|
|
||||||
- copr_dev_aws
|
|
||||||
- virt_guest
|
- virt_guest
|
||||||
- virt_host
|
- virt_host
|
||||||
|
|
|
@ -1416,3 +1416,11 @@ os-proxy02.fedorainfracloud.org
|
||||||
|
|
||||||
[ec2]
|
[ec2]
|
||||||
proxy30.fedoraproject.org
|
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
|
||||||
|
|
|
@ -4,3 +4,7 @@ define command{
|
||||||
command_line $USER1$/check_ssh -H $HOSTADDRESS$
|
command_line $USER1$/check_ssh -H $HOSTADDRESS$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define command{
|
||||||
|
command_name check-host-alive-ssh
|
||||||
|
command_line $USER1$/check_ssh -H $HOSTADDRESS$
|
||||||
|
}
|
||||||
|
|
|
@ -14,6 +14,20 @@ define host {
|
||||||
register 0
|
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 {
|
define host {
|
||||||
name mincheck
|
name mincheck
|
||||||
check_command check-host-alive4
|
check_command check-host-alive4
|
||||||
|
|
|
@ -4,7 +4,7 @@ define host {
|
||||||
{% if vars['nagios_location'] == 'internal' %}
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
{% else %}
|
{% else %}
|
||||||
use mincheck
|
use aws
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue