Browse code

Czujki apt oraz cron (cron jeszcze do konca nie dziala).

Lukasz P authored on17/02/2021 18:42:39
Showing1 changed files
... ...
@@ -1,5 +1,6 @@
1 1
 ---
2 2
 - import_playbook: helpers/monitoring_basic_setup.yaml
3
+- import_playbook: helpers/monitoring_setup_nrpe_wrappers.yaml
3 4
 - import_playbook: helpers/monitoring_setup_nrpe_servers.yaml
4 5
 - import_playbook: helpers/monitoring_setup_nrpe_plugins.yaml
5 6
 - import_playbook: helpers/monitoring_setup_nagios_servers.yaml
Browse code

Monitoring SWAP i drobne porzadki.

Lukasz P authored on16/02/2021 12:10:45
Showing1 changed files
... ...
@@ -1,35 +1,6 @@
1 1
 ---
2 2
 - import_playbook: helpers/monitoring_basic_setup.yaml
3
-- import_playbook: helpers/monitoring_setup_nrpe.yaml
3
+- import_playbook: helpers/monitoring_setup_nrpe_servers.yaml
4
+- import_playbook: helpers/monitoring_setup_nrpe_plugins.yaml
4 5
 - import_playbook: helpers/monitoring_setup_nagios_servers.yaml
5 6
 
6
-- name: Setup nrpe checks
7
-  hosts: all
8
-
9
-  tasks:
10
-
11
-  - name: Update nrpe checks configuration to Redhat-like hosts.
12
-    include_tasks: helpers/monitoring_setup_nrpe_checks.yaml
13
-    loop:
14
-    - {plugin_path: "/usr/lib64/nagios/plugins"}
15
-    when: ansible_os_family == 'RedHat'
16
-  
17
-  - name: Update nrpe checks configuration to Debian-like and Suse hosts.
18
-    include_tasks: helpers/monitoring_setup_nrpe_checks.yaml
19
-    loop:
20
-    - {plugin_path: "/usr/lib/nagios/plugins"}
21
-    when: ansible_os_family == 'Debian' or ansible_os_family == 'Suse'
22
-
23
-
24
-  handlers:
25
-
26
-  - name: restart nrpe RS
27
-    systemd:
28
-      name: nrpe
29
-      state: restarted
30
-
31
-  - name: restart nrpe D
32
-    systemd:
33
-      name: nagios-nrpe-server
34
-      state: restarted
35
-
Browse code

Zautomatyzowany monitoring.

Lukasz P authored on15/02/2021 13:37:06
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,35 @@
1
+---
2
+- import_playbook: helpers/monitoring_basic_setup.yaml
3
+- import_playbook: helpers/monitoring_setup_nrpe.yaml
4
+- import_playbook: helpers/monitoring_setup_nagios_servers.yaml
5
+
6
+- name: Setup nrpe checks
7
+  hosts: all
8
+
9
+  tasks:
10
+
11
+  - name: Update nrpe checks configuration to Redhat-like hosts.
12
+    include_tasks: helpers/monitoring_setup_nrpe_checks.yaml
13
+    loop:
14
+    - {plugin_path: "/usr/lib64/nagios/plugins"}
15
+    when: ansible_os_family == 'RedHat'
16
+  
17
+  - name: Update nrpe checks configuration to Debian-like and Suse hosts.
18
+    include_tasks: helpers/monitoring_setup_nrpe_checks.yaml
19
+    loop:
20
+    - {plugin_path: "/usr/lib/nagios/plugins"}
21
+    when: ansible_os_family == 'Debian' or ansible_os_family == 'Suse'
22
+
23
+
24
+  handlers:
25
+
26
+  - name: restart nrpe RS
27
+    systemd:
28
+      name: nrpe
29
+      state: restarted
30
+
31
+  - name: restart nrpe D
32
+    systemd:
33
+      name: nagios-nrpe-server
34
+      state: restarted
35
+