Browse code

Monitoring SWAP i drobne porzadki.

Lukasz P authored on16/02/2021 12:10:45
Showing1 changed files
... ...
@@ -15,8 +15,8 @@
15 15
       - {host_name: jezynka.ping.local, host_ip: 192.168.111.110}
16 16
       - {host_name: malinka.ping.local, host_ip: 192.168.111.106}
17 17
       - {host_name: leap15test.ping.local, host_ip: 192.168.111.43}
18
-      - {host_name: outpost.ping.local, host_ip: 192.168.111.96}
19
-      #- {host_name: potemkin.ping.local, host_ip: 192.168.111.19} # LOCALHOST
18
+      - {host_name: outpost.ping.local, host_ip: 192.168.111.95}
19
+      - {host_name: potemkin.ping.local, host_ip: 192.168.111.19}
20 20
       - {host_name: python-cave.ping.local, host_ip: 192.168.111.50}
21 21
       - {host_name: rawhide.ping.local, host_ip: 192.168.111.81}
22 22
       - {host_name: rhel8.ping.local, host_ip: 192.168.111.83}
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
+- name: Setup Nagios server files
3
+  hosts: localhost
4
+
5
+
6
+  tasks:
7
+
8
+  - name: Update Nagios server configuration files
9
+    include_tasks: monitoring_server_files.yaml
10
+    loop:
11
+      - {host_name: aegis.ping.local, host_ip: 192.168.111.21}
12
+      - {host_name: centos8test.ping.local , host_ip: 192.168.111.41}
13
+      - {host_name: dropshuttle.ping.local, host_ip: 192.168.111.113}
14
+      - {host_name: fedora33test.ping.local, host_ip: 192.168.111.42}
15
+      - {host_name: jezynka.ping.local, host_ip: 192.168.111.110}
16
+      - {host_name: malinka.ping.local, host_ip: 192.168.111.106}
17
+      - {host_name: leap15test.ping.local, host_ip: 192.168.111.43}
18
+      - {host_name: outpost.ping.local, host_ip: 192.168.111.96}
19
+      #- {host_name: potemkin.ping.local, host_ip: 192.168.111.19} # LOCALHOST
20
+      - {host_name: python-cave.ping.local, host_ip: 192.168.111.50}
21
+      - {host_name: rawhide.ping.local, host_ip: 192.168.111.81}
22
+      - {host_name: rhel8.ping.local, host_ip: 192.168.111.83}
23
+      - {host_name: strategie.ping.local, host_ip: 192.168.111.60}
24
+      - {host_name: stream.ping.local, host_ip: 192.168.111.82}
25
+      - {host_name: ubuntu2004test.ping.local, host_ip: 192.168.111.40}
26
+      - {host_name: union.ping.local, host_ip: 192.168.111.96}
27
+  
28
+
29
+  handlers:
30
+
31
+  - name: reload nagios
32
+    systemd:
33
+      name: nagios
34
+      state: reloaded
35
+