8000 increase zbx flush timeout. format error messages · postgrespro/mamonsu@0aac2cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 0aac2cd

Browse files
committed
increase zbx flush timeout. format error messages
1 parent 4dd32cb commit 0aac2cd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

mamonsu/lib/senders/zbx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class ZbxSender(Plugin):
1818

19-
Interval = 2
19+
Interval = 10
2020
_sender = True
2121

2222
def __init__(self, config):

mamonsu/lib/supervisor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ def _loop(self):
5555
if plugin_errors > 0:
5656
self._sender.send(
5757
'mamonsu.plugin.errors[]',
58-
'Errors in the last 60 seconds: {0}.\
59-
Last error: {1}'.format(
60-
plugin_errors, last_error))
58+
'Last error: {0} (total: {1})'.format(last_error, plugin_errors))
6159
else:
6260
self._sender.send('mamonsu.plugin.errors[]', '')
6361
plugin_errors, plugin_probes = 0, 0

0 commit comments

Comments
 (0)
0