iad2: nagios_server: Move all the iad2 hosts to a group, set nagios variables per group

Right now we don't want noc01.phx2 to try and monitor hosts in iad2.
So, we need to set some variables to get it to not do that.
Move all the iad hosts into a seperate iad2 group and use that.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-11 14:54:49 -07:00
parent 9cf7271d10
commit 311143b443
17 changed files with 15 additions and 71 deletions

13
inventory/group_vars/iad2 Normal file
View file

@ -0,0 +1,13 @@
---
# group variables for all hosts in iad2 datacenter
# for now, lets not monitor any of them from phx2.
nagios_Can_Connect: false
nagios_Check_Services:
mail: false
nrpe: false
sshd: false
swap: false
ping: false

View file

@ -140,3 +140,4 @@ exclude_hostgroups:
- dbgserver_stg
- virt_guest
- virt_host
- iad2

View file

@ -17,8 +17,3 @@ vpn: false
ssh_hostnames:
- bastion.fedoraproject.org
- bastion01.fedoraproject.org
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -28,8 +28,3 @@ sar_output_file: koji.json
# SSH into batcave through VPN, like from bastion in a different DC.
ssh_hostnames:
- batcave01.vpn.fedoraproject.org
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -23,8 +23,3 @@ num_cpus: 16
fas_client_groups: fi-apprentice,sysadmin-veteran,sysadmin-logs,sysadmin-noc,sysadmin-atomic
#host_backup_targets: ['/var/log']
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -25,8 +25,3 @@ custom_rules: [
nagios_srcdir: 'nagios'
nagios_location: 'internal'
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -13,11 +13,6 @@ ks_repo: http://209.132.181.6/repo/rhel/RHEL8-x86_64/
vmhost: vmhost-x86-01.iad2.fedoraproject.org
datacenter: iad2
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false
csi_relationship: |
ns01 is a master dns server.

View file

@ -16,8 +16,3 @@ ks_repo: http://209.132.181.6/repo/rhel/RHEL8-x86_64/
lvm_size: 20000
mem_size: 4096
num_cpus: 2
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -16,8 +16,3 @@ ks_repo: http://209.132.181.6/repo/rhel/RHEL8-x86_64/
lvm_size: 20000
mem_size: 4096
num_cpus: 2
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -7,8 +7,3 @@ br0_gw: 10.3.163.254
br0_dev: eno1
dns: 10.3.163.33
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -7,8 +7,3 @@ br0_gw: 10.3.163.254
br0_dev: eno1
dns: 10.3.163.33
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -7,8 +7,3 @@ br0_gw: 10.3.163.254
br0_dev: eno1
dns: 10.3.163.33
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -7,8 +7,3 @@ br0_gw: 10.3.163.254
br0_dev: eno1
dns: 10.3.163.33
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -7,8 +7,3 @@ br0_gw: 10.3.163.254
br0_dev: eno1
dns: 10.3.163.33
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -7,8 +7,3 @@ br0_gw: 10.3.163.254
br0_dev: eno1
dns: 10.3.163.33
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -7,8 +7,3 @@ br0_gw: 10.3.163.254
br0_dev: eno1
dns: 10.3.163.33
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
ping: false

View file

@ -1281,7 +1281,7 @@ retrace01.qa.fedoraproject.org
# os-proxy01.fedorainfracloud.org
# os-proxy02.fedorainfracloud.org
[nixnagios]
[iad2]
bastion01.iad2.fedoraproject.org
batcave01.iad2.fedoraproject.org
log01.iad2.fedoraproject.org