ok lets try and make the noc02 a better player
This commit is contained in:
parent
06be05edfb
commit
2702bf21a4
12 changed files with 50 additions and 9 deletions
|
@ -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
|
|
||||||
}
|
|
|
@ -131,7 +131,6 @@
|
||||||
- name: Copy /etc/nagios/commands
|
- name: Copy /etc/nagios/commands
|
||||||
copy: src=nagios/commands/{{ item }} dest=/etc/nagios/commands/{{ item }}
|
copy: src=nagios/commands/{{ item }} dest=/etc/nagios/commands/{{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- bzr.cfg
|
|
||||||
- disk.cfg
|
- disk.cfg
|
||||||
- dns.cfg
|
- dns.cfg
|
||||||
- git.cfg
|
- git.cfg
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'bodhost' %}
|
{% if hostvars[host].datacenter == 'bodhost' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'coloamer' %}
|
{% if hostvars[host].datacenter == 'coloamer' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'dedicatedsolutions' %}
|
{% if hostvars[host].datacenter == 'dedicatedsolutions' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'host1plus' %}
|
{% if hostvars[host].datacenter == 'host1plus' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'ibiblio' %}
|
{% if hostvars[host].datacenter == 'ibiblio' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'internetx' %}
|
{% if hostvars[host].datacenter == 'internetx' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'osuosl' %}
|
{% if hostvars[host].datacenter == 'osuosl' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'rdu-cc' %}
|
{% if hostvars[host].datacenter == 'rdu-cc' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'rdu' %}
|
{% if hostvars[host].datacenter == 'rdu' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'tummy' %}
|
{% if hostvars[host].datacenter == 'tummy' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue