Browse code

Monitoring Zyppera.

Lukasz P authored on13/03/2021 08:16:35
Showing1 changed files
... ...
@@ -43,16 +43,23 @@ define service{
43 43
 }
44 44
 
45 45
 define service{
46
-    use                     bindir-service-hourly
46
+    use                     bindir-service-updates
47 47
     host_name               {{ item.host_name }}
48 48
     service_description     APT
49 49
     check_command           check_nrpe!-c check_apt
50 50
 }
51 51
 
52 52
 define service{
53
-    use                     bindir-service-hourly
53
+    use                     bindir-service-updates
54 54
     host_name               {{ item.host_name }}
55 55
     service_description     DNF
56 56
     check_command           check_nrpe!-c check_dnf
57 57
 }
58 58
 
59
+define service{
60
+    use                     bindir-service-updates
61
+    host_name               {{ item.host_name }}
62
+    service_description     ZYPPER
63
+    check_command           check_nrpe!-c check_zypper
64
+}
65
+
Browse code

Poprawki z czujce dnf

Lukasz P authored on27/02/2021 15:41:18
Showing1 changed files
... ...
@@ -43,16 +43,16 @@ define service{
43 43
 }
44 44
 
45 45
 define service{
46
-    use                     bindir-service
46
+    use                     bindir-service-hourly
47 47
     host_name               {{ item.host_name }}
48 48
     service_description     APT
49 49
     check_command           check_nrpe!-c check_apt
50 50
 }
51 51
 
52 52
 define service{
53
-    use                     bindir-service
53
+    use                     bindir-service-hourly
54 54
     host_name               {{ item.host_name }}
55 55
     service_description     DNF
56
-    check_command           check_nrpe!-t 30 -c check_dnf
56
+    check_command           check_nrpe!-c check_dnf
57 57
 }
58 58
 
Browse code

Monitoring dnf

Lukasz P authored on18/02/2021 17:13:52
Showing1 changed files
... ...
@@ -18,34 +18,41 @@ define service {
18 18
     use                     bindir-service
19 19
     host_name               {{ item.host_name }}
20 20
     service_description     DISK_ROOT
21
-    check_command           check_nrpe!check_disk
21
+    check_command           check_nrpe!-c check_disk
22 22
 }
23 23
 
24 24
 define service{
25 25
     use                     bindir-service
26 26
     host_name               {{ item.host_name }}
27 27
     service_description     LOAD
28
-    check_command           check_nrpe!check_load
28
+    check_command           check_nrpe!-c check_load
29 29
 }
30 30
 
31 31
 define service{
32 32
     use                     bindir-service
33 33
     host_name               {{ item.host_name }}
34 34
     service_description     SWAP
35
-    check_command           check_nrpe!check_swap
35
+    check_command           check_nrpe!-c check_swap
36 36
 }
37 37
 
38 38
 define service{
39 39
     use                     bindir-service
40 40
     host_name               {{ item.host_name }}
41 41
     service_description     CRON
42
-    check_command           check_nrpe!check_cron
42
+    check_command           check_nrpe!-c check_cron
43 43
 }
44 44
 
45 45
 define service{
46 46
     use                     bindir-service
47 47
     host_name               {{ item.host_name }}
48 48
     service_description     APT
49
-    check_command           check_nrpe!check_apt
49
+    check_command           check_nrpe!-c check_apt
50
+}
51
+
52
+define service{
53
+    use                     bindir-service
54
+    host_name               {{ item.host_name }}
55
+    service_description     DNF
56
+    check_command           check_nrpe!-t 30 -c check_dnf
50 57
 }
51 58
 
Browse code

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

Lukasz P authored on17/02/2021 18:42:39
Showing1 changed files
... ...
@@ -18,20 +18,34 @@ define service {
18 18
     use                     bindir-service
19 19
     host_name               {{ item.host_name }}
20 20
     service_description     DISK_ROOT
21
-    check_command           check_nrpe!-c check_disk
21
+    check_command           check_nrpe!check_disk
22 22
 }
23 23
 
24 24
 define service{
25 25
     use                     bindir-service
26 26
     host_name               {{ item.host_name }}
27 27
     service_description     LOAD
28
-    check_command           check_nrpe!-c check_load
28
+    check_command           check_nrpe!check_load
29 29
 }
30 30
 
31 31
 define service{
32 32
     use                     bindir-service
33 33
     host_name               {{ item.host_name }}
34 34
     service_description     SWAP
35
-    check_command           check_nrpe!-c check_swap
35
+    check_command           check_nrpe!check_swap
36
+}
37
+
38
+define service{
39
+    use                     bindir-service
40
+    host_name               {{ item.host_name }}
41
+    service_description     CRON
42
+    check_command           check_nrpe!check_cron
43
+}
44
+
45
+define service{
46
+    use                     bindir-service
47
+    host_name               {{ item.host_name }}
48
+    service_description     APT
49
+    check_command           check_nrpe!check_apt
36 50
 }
37 51
 
Browse code

Monitoring SWAP i drobne porzadki.

Lukasz P authored on16/02/2021 12:10:45
Showing1 changed files
... ...
@@ -1,3 +1,5 @@
1
+# Managed with Ansible
2
+
1 3
 define host {
2 4
     use                     linux-server
3 5
     host_name               {{ item.host_name }}
... ...
@@ -26,3 +28,10 @@ define service{
26 28
     check_command           check_nrpe!-c check_load
27 29
 }
28 30
 
31
+define service{
32
+    use                     bindir-service
33
+    host_name               {{ item.host_name }}
34
+    service_description     SWAP
35
+    check_command           check_nrpe!-c check_swap
36
+}
37
+
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,28 @@
1
+define host {
2
+    use                     linux-server
3
+    host_name               {{ item.host_name }}
4
+    alias                   {{ item.host_name }}
5
+    address                 {{ item.host_ip }}
6
+}
7
+
8
+define service {
9
+    use                     bindir-service
10
+    host_name               {{ item.host_name }}
11
+    service_description     PING
12
+    check_command           check_ping!100.0,20%!500.0,60%
13
+}
14
+
15
+define service {
16
+    use                     bindir-service
17
+    host_name               {{ item.host_name }}
18
+    service_description     DISK_ROOT
19
+    check_command           check_nrpe!-c check_disk
20
+}
21
+
22
+define service{
23
+    use                     bindir-service
24
+    host_name               {{ item.host_name }}
25
+    service_description     LOAD
26
+    check_command           check_nrpe!-c check_load
27
+}
28
+