Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
  • renovate/configure
  • v1.0
  • v1.1
  • v1.2
  • v10.0.0
  • v11.0.0
  • v2.0
  • v3.0
  • v4.0
  • v5.0
  • v5.1
  • v5.1.0
  • v5.2.0
  • v5.2.1
  • v5.2.2
  • v5.2.3
  • v5.2.4
  • v5.2.5
  • v5.3.0
  • v5.4.0
  • v5.4.1
  • v5.5.0
  • v5.6.0
  • v5.7.0
  • v5.7.1
  • v6.0.0
  • v6.1.0
  • v6.1.1
  • v7.0.0
  • v8.0.0
  • v8.1.0
  • v9.0.0
  • v9.0.1
34 results

Target

Select target project
  • fsi-ansible/netdata_server
1 result
Select Git revision
  • master
  • renovate/configure
  • v1.0
  • v1.1
  • v1.2
  • v10.0.0
  • v11.0.0
  • v2.0
  • v3.0
  • v4.0
  • v5.0
  • v5.1
  • v5.1.0
  • v5.2.0
  • v5.2.1
  • v5.2.2
  • v5.2.3
  • v5.2.4
  • v5.2.5
  • v5.3.0
  • v5.4.0
  • v5.4.1
  • v5.5.0
  • v5.6.0
  • v5.7.0
  • v5.7.1
  • v6.0.0
  • v6.1.0
  • v6.1.1
  • v7.0.0
  • v8.0.0
  • v8.1.0
  • v9.0.0
  • v9.0.1
34 results
Show changes

Commits on Source 9

......@@ -4,7 +4,7 @@ Configures netdata to monitor the host and send alerts.
## Alerts
Make sure to set `netdata_from_email` and `netdata_to_email` and to configure the `msmtp_relay` role.
You can override alarm settings in `files/health_override.conf`
You can override alarm settings in `files/{{ inventory_hostname }}/20_netdata_health_override.conf`
## Incoming replication
If you set `netdata_master` to `true` it will also act as a central target for other collectors.
......
......@@ -11,3 +11,4 @@ netdata_last_collected_warn_interval: 30
netdata_last_collected_crit_interval: 300
netdata_disable_last_collected_alerts: false
netdata_enable_ebpf: true
netdata_use_msmtp: true
---
- name: reload netdata alarms
- name: Reload netdata alarms
ansible.builtin.command: killall -USR2 netdata
changed_when: true
......@@ -11,6 +11,7 @@ galaxy_info:
dependencies:
- src: https://gitlab.fachschaften.org/fsi-ansible/netdata-base.git
scm: git
version: "v4.1.0"
version: "v4.2.2"
name: netdata_base
- src: msmtp_relay
when: netdata_use_msmtp
......@@ -5,8 +5,8 @@
dest: /etc/netdata/netdata.conf
owner: root
group: root
mode: 0644
notify: restart netdata
mode: "0644"
notify: Restart netdata
- name: Copy netdata stream config
ansible.builtin.template:
......@@ -14,9 +14,9 @@
dest: /etc/netdata/stream.conf
owner: root
group: root
mode: 0644
mode: "0644"
when: netdata_master
notify: restart netdata
notify: Restart netdata
- name: Copy health override config
ansible.builtin.copy:
......@@ -24,20 +24,20 @@
dest: /etc/netdata/health.d/
owner: root
group: root
mode: 0644
mode: "0644"
with_fileglob:
- "{{ inventory_hostname }}/netdata_health_override.conf"
- "netdata/netdata_health_global.conf"
notify: reload netdata alarms
- 10_ansible_defaults.conf
- "{{ inventory_hostname }}/20_netdata_health_override.conf"
notify: Reload netdata alarms
- name: Copy last_collected alert config
ansible.builtin.template:
dest: "/etc/netdata/health.d/last_collected.conf"
dest: "/etc/netdata/health.d/10_last_collected.conf"
src: "last_collected.conf.j2"
owner: root
group: root
mode: 0644
notify: reload netdata alarms
mode: "0644"
notify: Reload netdata alarms
- name: Enable netdata
ansible.builtin.service:
......@@ -52,20 +52,47 @@
force: false
owner: root
group: root
mode: 0644
mode: "0644"
- name: Set email sender
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: "^EMAIL_SENDER=\".*\""
line: "EMAIL_SENDER=\"{{ netdata_from_email }}\""
regexp: ^EMAIL_SENDER=".*"
line: EMAIL_SENDER="{{ netdata_from_email }}"
state: present
notify: reload netdata alarms
notify: Reload netdata alarms
- name: Set email recipient
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: "^DEFAULT_RECIPIENT_EMAIL=\".*\""
line: "DEFAULT_RECIPIENT_EMAIL=\"{{ netdata_to_email }}\""
regexp: ^DEFAULT_RECIPIENT_EMAIL=".*"
line: DEFAULT_RECIPIENT_EMAIL="{{ netdata_to_email }}"
state: present
notify: restart netdata
notify: Restart netdata
- name: Set Matrix homeserver
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: ^MATRIX_HOMESERVER=.*
line: MATRIX_HOMESERVER="{{ netdata_matrix_homeserver }}"
state: present
when: netdata_matrix_homeserver is defined
notify: Restart netdata
- name: Set Matrix token
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: ^MATRIX_ACCESSTOKEN=.*
line: MATRIX_ACCESSTOKEN="{{ netdata_matrix_token }}"
state: present
when: netdata_matrix_token is defined
notify: Restart netdata
- name: Set Matrix room
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: ^DEFAULT_RECIPIENT_MATRIX=.*
line: DEFAULT_RECIPIENT_MATRIX="{{ netdata_matrix_room }}"
state: present
when: netdata_matrix_token is defined
notify: Restart netdata