ok lets try and make the noc02 a better player

This commit is contained in:
Stephen Smoogen 2017-06-23 19:29:18 +00:00
parent 06be05edfb
commit 2702bf21a4
12 changed files with 50 additions and 9 deletions

View file

@ -1,8 +0,0 @@
# 'check_bzr' command definition
# I'd like this to actually interact with BZR, but I can't find any
# proper documentation on the protocol to craft send/expect/quit
# strings.
define command{
command_name check_bzr
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 4155
}

View file

@ -131,7 +131,6 @@
- name: Copy /etc/nagios/commands
copy: src=nagios/commands/{{ item }} dest=/etc/nagios/commands/{{ item }}
with_items:
- bzr.cfg
- disk.cfg
- dns.cfg
- git.cfg

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'bodhost' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'coloamer' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'dedicatedsolutions' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'host1plus' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'ibiblio' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'internetx' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'osuosl' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'rdu-cc' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'rdu' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}

View file

@ -1,7 +1,12 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'tummy' %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}