-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetbox-extractor.yml.example
More file actions
138 lines (120 loc) · 3.38 KB
/
netbox-extractor.yml.example
File metadata and controls
138 lines (120 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
# Logger config
logger:
level: debug
log_file: stdout
# Netbox config
netbox:
http_scheme: https
hostname: "<hostname>"
port: 443
api_token: "{{ ENV['NETBOX_TOKEN_API'] }}"
debug: false
fetch_limit: 250
# Ansible global config (will apply on all sites)
ansible:
inventories_dir: ./generated/inventories
fetch_facts:
timeout: 5
fork_limit: 30
ssh_args: "-o ControlMaster=auto -o ControlPersist=600s"
exclude_tags:
- check-only-ping
- ansible-nofacts
# Icinga global config (will apply on all sites)
icinga:
zones_dir: ./generated/icinga2/zones.d
# Sites config
sites:
- name: DC1
id: dc1
# Don't manage these hosts (with Ansible or icinga)
exclude_objects:
# Not managed: tests
- test1.localdomain
- test2.localdomain
- test3.localdomain
# Ansible site config
ansible:
# Generate Ansible inventories for this Netbox devices
include_device_roles:
- name: hypervisor-proxmox
- name: server-linux
filename: "physical-linux"
# Generate Ansible inventories for this Netbox virtual machines
include_vm_roles:
- name: virtual-machine-proxmox
os: linux
filename: "virtual-proxmox-linux"
# Fetch Ansible facts for these inventories
fetch_facts:
timeout: 10
inventories:
- hypervisor-proxmox.yml
- physical-linux.yml
- virtual-proxmox-linux.yml
# Icinga site config
icinga:
# Generate Icinga config files for this Netbox devices
include_device_roles:
- name: hypervisor-proxmox
- name: storage-netapp
- name: network-bmc
- name: network-firewall
- name: server-linux
filename: "physical-linux"
# Generate Icinga config files for this Netbox virtual machines
include_vm_roles:
- name: virtual-machine-proxmox
os: linux
filename: "virtual-proxmox-linux"
- name: virtual-machine-proxmox
os: windows
filename: "virtual-proxmox-windows"
checks_config:
- host: foo.localdomain
check_type: snmp
check_esx:
username: <username>
password: <password>
check_postgres:
username: <username>
password: <password>
instances:
- name: <instance name>
version: <instance pg version>
port: <instance port>
dbname: <db name>
check_rabbit:
username: <username>
password: <password>
node: <node name>
queues:
- name: <queue name>
warning: <queue warning>
critical: <queue critical>
check_drac:
exclude_checks:
- BATTERY
check_mysql:
username: <username>
password: <password>
check_slave: true
check_netapp:
check_api:
base_url: <url>
username: <username>
password: <password>
aggregates:
warning: 87
critical: 90
volumes:
- /vol/nfs_vol1
- /vol/nfs_vol2
exclude_checks:
- HA
- NVRAM
- TEMP
- FAN
- PS
- SNAPSHOT