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
|
||||
copy: src=nagios/commands/{{ item }} dest=/etc/nagios/commands/{{ item }}
|
||||
with_items:
|
||||
- bzr.cfg
|
||||
- disk.cfg
|
||||
- dns.cfg
|
||||
- git.cfg
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue