and this should make our mail easier to read

This commit is contained in:
Stephen Smoogen 2018-08-27 22:44:54 +00:00
parent 81ffb2d7fd
commit 330a8e4a1d
26 changed files with 30 additions and 8 deletions

View file

@ -264,7 +264,7 @@ createrepo: True
# Nagios global variables
nagios_Check_Services:
monitor: true
mail: true
nrpe: true
sshd: true
named: false

View file

@ -56,4 +56,5 @@ csi_relationship: |
- Bastion does not accept any mail outside phx2/vpn.
nagios_Check_Services:
nrpe: false
nrpe: true
mail: false

View file

@ -5,3 +5,4 @@
nagios_Check_Services:
nrpe: false
swap: false
mail: false

View file

@ -5,3 +5,4 @@
nagios_Check_Services:
nrpe: false
swap: false
mail: false

View file

@ -1,5 +1,6 @@
---
nagios_Check_Services:
mail: false
nrpe: false
swap: false
datacenter: cloud

View file

@ -6,6 +6,7 @@ tcp_ports: [ 80, 443 ]
sudoers: "{{ private }}/files/sudo/arm-retrace-sudoers"
nagios_Check_Services:
mail: false
nrpe: false
swap: false

View file

@ -11,7 +11,7 @@ ansible_ifcfg_whitelist: ['eth1']
baseiptables: false
ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q cloud-noc01.cloud.fedoraproject.org"'
nagios_Check_Services:
monitor: false
mail: false
nrpe: false
sshd: false
swap: false

View file

@ -6,3 +6,4 @@ swap: false
nagios_Check_Services:
swap: false
nrpe: false
mail: false

View file

@ -6,3 +6,4 @@ os_app_url: app.os.stg.fedoraproject.org
nagios_Check_Services:
swap: false
nrpe: false
mail: false

View file

@ -6,3 +6,4 @@ swap: false
nagios_Check_Services:
swap: false
nrpe: false
mail: false

View file

@ -6,3 +6,4 @@ os_app_url: app.os.stg.fedoraproject.org
nagios_Check_Services:
swap: false
nrpe: false
mail: false

View file

@ -7,5 +7,6 @@ sudoers: "{{ private }}/files/sudo/arm-retrace-sudoers"
root_auth_users: msuchy
nagios_Check_Services:
mail: false
nrpe: false
swap: false

View file

@ -4,7 +4,7 @@ postfix_group: sign
host_group: sign
ansible_ifcfg_blacklist: true
nagios_Check_Services:
monitor: false
mail: false
nrpe: false
sshd: false
swap: false

View file

@ -14,3 +14,7 @@ fas_client_groups: sysadmin-noc,sysadmin-tools,fi-apprentice,sysadmin-veteran
postfix_transport_filename: transports.mm-smtp
postfix_group: smtp-mm
vpn: true
nagios_Check_Services:
nrpe: true
mail: false

View file

@ -26,6 +26,7 @@ postfix_group: vpn
vpn: true
nagios_Check_Services:
mail: false
nrpe: false
sshd: false
swap: false

View file

@ -15,5 +15,6 @@ eth1_nm: 255.255.255.0
public_ip: 209.132.190.4
nagios_Check_Services:
mail: false
nrpe: false
ping: true

View file

@ -12,6 +12,7 @@ vmhost: virthost04.stg.phx2.fedoraproject.org
datacenter: phx2
nagios_Check_Services:
mail: false
nrpe: false
swap: false

View file

@ -1,4 +1,5 @@
---
nagios_Check_Services:
mail: false
nrpe: false
swap: false

View file

@ -1,4 +1,5 @@
---
nagios_Check_Services:
mail: false
nrpe: false
swap: false

View file

@ -28,6 +28,7 @@ ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q root@bastion13.fedora
nagios_Check_Services:
nrpe: false
mail: false
sshd: false
swap: false
ping: false

View file

@ -16,3 +16,4 @@ max_mem_size: 4096
nagios_Check_Services:
nrpe: false
mail: false

View file

@ -62,7 +62,7 @@ fedmsg_prefix: org.centos
fedmsg_env: stg
nagios_Check_Services:
monitor: false
mail: false
nrpe: false
sshd: false
swap: false

View file

@ -62,7 +62,7 @@ fedmsg_prefix: org.centos
fedmsg_env: prod
nagios_Check_Services:
monitor: false
mail: false
nrpe: false
sshd: false
swap: false

View file

@ -17,7 +17,7 @@ vmhost: cloud-noc01.cloud.fedoraproject.org
datacenter: newcloud
nagios_Check_Services:
monitor: false
mail: false
nrpe: false
sshd: false
swap: false

View file

@ -16,3 +16,4 @@ public_ip: 209.132.190.11
nagios_Check_Services:
nrpe: false
mail: false

View file

@ -1,6 +1,6 @@
define hostgroup {
hostgroup_name nomail
alias Detect For 0 Mail In Queue
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}{{host}}, {% endif %}{% endfor %}
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['nrpe'] == true and hostvars[host].nagios_Check_Services['mail'] == true%}{{host}}, {% endif %}{% endfor %}
}