Skip to content

Commit 93c71de

Browse files
committed
chore: updated template and configuration file examples for new version
1 parent 9352431 commit 93c71de

File tree

6 files changed

+58
-8090
lines changed

6 files changed

+58
-8090
lines changed

mamonsu/plugins/system/linux/disk_sizes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from mamonsu.plugins.system.plugin import SystemPlugin as Plugin
33

44

5-
# PATH = "/etc/zabbix/scripts/agentd/zapgix"
65

76

87
class DiskSizes(Plugin):

mamonsu/plugins/system/linux/disk_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
from mamonsu.plugins.system.plugin import SystemPlugin as Plugin
33

4-
#PATH = "/etc/zabbix/scripts/agentd/zapgix"
4+
55

66

77
class DiskStats(Plugin):

mamonsu/plugins/system/linux/net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from mamonsu.plugins.system.plugin import SystemPlugin as Plugin
22

3-
#PATH = "/etc/zabbix/scripts/agentd/zapgix"
3+
44

55

66
class Net(Plugin):

packaging/conf/example.conf

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,18 @@
1-
### required section
21
[postgres]
32
enabled = True
4-
host = auto
53
user = postgres
4+
password = None
65
database = postgres
6+
host = localhost
77
port = 5432
8+
application_name = mamonsu
89
query_timeout = 10
910

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
2111
[system]
2212
enabled = True
2313

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
2916

3017
[agent]
3118
enabled = True
@@ -36,13 +23,22 @@ port = 10052
3623
enabled = False
3724
directory = /etc/mamonsu/plugins
3825

26+
[zabbix]
27+
enabled = True
28+
client = dvilova-All-Series
29+
address = 127.0.0.1
30+
port = 10051
3931

4032
[metric_log]
4133
enabled = False
4234
directory = /var/log/mamonsu
4335
max_size_mb = 1024
4436

45-
### individual plugin sections
37+
[log]
38+
file = None
39+
level = INFO
40+
format = [%(levelname)s] %(asctime)s - %(name)s - %(message)s
41+
4642
[health]
4743
max_memory_usage = 41943040
4844
interval = 60
@@ -85,8 +81,8 @@ max_checkpoint_by_wal_in_hour = 12
8581
interval = 300
8682

8783
[oldest]
88-
max_transaction_time = 18000
8984
max_xid_age = 18000000
85+
max_query_time = 18000
9086
interval = 60
9187

9288
[pglocks]

0 commit comments

Comments
 (0)