-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.yml
77 lines (66 loc) · 2.36 KB
/
main.yml
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
---
# for check_mk you should set at least
opn_packages:
- bash
- freeipmi
- libstatgrab
- dmidecode
- monitoring-plugins
# in order to fetch the latest check_mk_agent.freebsd from a running checkmk server
# define the hostname of the checkmk server;
# required for fetching the agent from the server;
# the server must be reacheble from the control machine, not from the target host
# checkmk_hostname:
# protocoll used by the server (http|https)
checkmk_proto: http
# path part of the uri to get the agents from the checkmk server
# mostly SITENAME/check_mk/agents
checkmk_path: "SITENAME/check_mk/agents"
# agent name
checkmk_agent_name: "check_mk_agent.freebsd"
## end agent download related VARs
opn_install_check_mk: true
opn_check_mk_path: /usr/local/sbin/check_mk_agent
opn_check_mk_lib_dir: /usr/local/lib/check_mk_agent
opn_check_mk_conf_dir: /etc/check_mk
opn_check_mk_port: 6556
# patches for the checkmk agent to apply
opn_check_mk_patches:
- check_mk_agent-freeipmi.p0 # https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-checkmk/issues/24
# dict of plugins and local checks to install
# new ! - we use a dict of lists in order to allow
# adding additional checks per hosts / groups etc.
# the old list syntax opn_check_mk_local_checks: [] is still supported
opn_check_mk_local_checks:
all:
- check_powerunit.sh
- crash_status.py
- firmware_status.py
- gateways_status.py
- pfctl_status.sh
- pkg_audit.py
- pkg_check.sh
# dict of lists of mrpe checks to run
# example:
# opn_check_mk_mrpe_checks:
# ups:
# - UPS /usr/local/libexec/nagios/check_ups -H localhost -u UPSName
opn_check_mk_mrpe_checks: {}
# dict of additional files: file name => dest
# example:
# opn_check_mk_additional_files:
# firmware_status.yml: "{{ opn_check_mk_lib_dir }}/local/"
# pkg_audit.yml: "{{ opn_check_mk_lib_dir }}/local/"
opn_check_mk_additional_files: {}
# add here some plugin files (and add them to files/ too!
# for example:
# https://raw.githubusercontent.com/zerwes/check_mk_extensions/wireguard-fix-plugin-interpreter/wireguard/agents/plugins/wireguard
#
# plugins shipped within this repository and ready to be deployed:
# opn_check_mk_plugins:
# - wireguard
# - smart
opn_check_mk_plugins: []
# set this to "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}"
# to make the playbook multi user aware
_local_tmp: /var/tmp