Skip to content

Commit

Permalink
Adds location to heartbeat monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
nkakouros committed Sep 10, 2020
1 parent f91a29f commit 3465791
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion templates/beats/heartbeat.openvpn.monitors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,26 @@
schedule: '@every 5s'
hosts:
- "{{ openvpn_host | d(inventory_hostname) }}"
processors:
- add_observer_metadata:
geo:
name: "{{ openvpn_monitor_location }}"

# The next two monitors require the management server to be enabled in OpenVPN
# config.
- name: OpenVPN service running
id: "{{ openvpn_monitor_mgmt_with_pass_id | d('openvpn_mgmt_with_pass') }}"
type: tcp
enabled: {{ openvpn_monitor_tcp_with_pass_enabled | d(false) }}
enabled: {{ openvpn_monitor_mgmt_with_pass_enabled | d(false) }}
schedule: '@every 5s'
hosts:
- "tcp://{{ openvpn_monitor_mgmt_host }}:{{ openvpn_monitor_mgmt_port }}"
check:
receive: 'ENTER PASSWORD:'
processors:
- add_observer_metadata:
geo:
name: "{{ openvpn_monitor_location }}"

- name: OpenVPN service running
id: "{{ openvpn_monitor_mgmt_id | d('openvpn_mgmt') }}"
Expand All @@ -31,3 +39,7 @@
- "tcp://{{ openvpn_monitor_mgmt_host }}:{{ openvpn_monitor_mgmt_port }}"
check:
receive: '>INFO:OpenVPN Management Interface'
processors:
- add_observer_metadata:
geo:
name: "{{ openvpn_monitor_location }}"

0 comments on commit 3465791

Please sign in to comment.