File tree Expand file tree Collapse file tree 6 files changed +58
-8090
lines changed
mamonsu/plugins/system/linux Expand file tree Collapse file tree 6 files changed +58
-8090
lines changed Original file line number Diff line number Diff line change 2
2
from mamonsu .plugins .system .plugin import SystemPlugin as Plugin
3
3
4
4
5
- # PATH = "/etc/zabbix/scripts/agentd/zapgix"
6
5
7
6
8
7
class DiskSizes (Plugin ):
Original file line number Diff line number Diff line change 1
1
import re
2
2
from mamonsu .plugins .system .plugin import SystemPlugin as Plugin
3
3
4
- #PATH = "/etc/zabbix/scripts/agentd/zapgix"
4
+
5
5
6
6
7
7
class DiskStats (Plugin ):
Original file line number Diff line number Diff line change 1
1
from mamonsu .plugins .system .plugin import SystemPlugin as Plugin
2
2
3
- #PATH = "/etc/zabbix/scripts/agentd/zapgix"
3
+
4
4
5
5
6
6
class Net (Plugin ):
Original file line number Diff line number Diff line change 1
- ### required section
2
1
[postgres]
3
2
enabled = True
4
- host = auto
5
3
user = postgres
4
+ password = None
6
5
database = postgres
6
+ host = localhost
7
7
port = 5432
8
+ application_name = mamonsu
8
9
query_timeout = 10
9
10
10
- ### required section
11
- [zabbix]
12
- ; zabbix server address
13
- address = zabbix.server.ip
14
- ; configured 'Host name' of client in zabbix
15
- client = localhost
16
- port = 10051
17
- [sender]
18
- queue = 2048
19
-
20
- ### required section
21
11
[system]
22
12
enabled = True
23
13
24
- ### required section
25
- [log]
26
- file = /var/log/mamonsu/agent.log
27
- level = INFO
28
- format = [%(levelname)s] %(asctime)s - %(name)s - %(message)s
14
+ [sender]
15
+ queue = 2048
29
16
30
17
[agent]
31
18
enabled = True
@@ -36,13 +23,22 @@ port = 10052
36
23
enabled = False
37
24
directory = /etc/mamonsu/plugins
38
25
26
+ [zabbix]
27
+ enabled = True
28
+ client = dvilova-All-Series
29
+ address = 127.0.0.1
30
+ port = 10051
39
31
40
32
[metric_log]
41
33
enabled = False
42
34
directory = /var/log/mamonsu
43
35
max_size_mb = 1024
44
36
45
- ### individual plugin sections
37
+ [log]
38
+ file = None
39
+ level = INFO
40
+ format = [%(levelname)s] %(asctime)s - %(name)s - %(message)s
41
+
46
42
[health]
47
43
max_memory_usage = 41943040
48
44
interval = 60
@@ -85,8 +81,8 @@ max_checkpoint_by_wal_in_hour = 12
85
81
interval = 300
86
82
87
83
[oldest]
88
- max_transaction_time = 18000
89
84
max_xid_age = 18000000
85
+ max_query_time = 18000
90
86
interval = 60
91
87
92
88
[pglocks]
You can’t perform that action at this time.
0 commit comments