mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
amavis_multi: rename "amavisd" to "amavis", as "d" was dropped in upstream too
This commit is contained in:
parent
dd749a26c0
commit
e36bb075fb
1 changed files with 7 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""Munin plugin to monitor amavisd mail filter status.
|
"""Munin plugin to monitor amavis mail filter status.
|
||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
||||||
amavis_multi - monitor amavisd mail filter status
|
amavis_multi - monitor amavis mail filter status
|
||||||
|
|
||||||
=head1 CONFIGURATION
|
=head1 CONFIGURATION
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ def run_binary(arg):
|
||||||
|
|
||||||
|
|
||||||
def get_values():
|
def get_values():
|
||||||
"""Get status from nanny and agent. They are part of amavisd."""
|
"""Get status from nanny and agent. They are part of amavis."""
|
||||||
ret = {
|
ret = {
|
||||||
'nanny': {
|
'nanny': {
|
||||||
'total': 0,
|
'total': 0,
|
||||||
|
@ -85,7 +85,7 @@ def print_status(config):
|
||||||
# doesn't trigger warning.
|
# doesn't trigger warning.
|
||||||
print('multigraph amavis_childs')
|
print('multigraph amavis_childs')
|
||||||
if config or both:
|
if config or both:
|
||||||
print('graph_title Amavisd mail filter busy childs')
|
print('graph_title Amavis mail filter busy childs')
|
||||||
print('graph_vlabel % busy')
|
print('graph_vlabel % busy')
|
||||||
print('graph_args --base 1000 --lower-limit 0 --upper-limit 100')
|
print('graph_args --base 1000 --lower-limit 0 --upper-limit 100')
|
||||||
print('graph_category spamfilter')
|
print('graph_category spamfilter')
|
||||||
|
@ -114,7 +114,7 @@ def print_status(config):
|
||||||
# Mail counts
|
# Mail counts
|
||||||
print('multigraph amavis_mails')
|
print('multigraph amavis_mails')
|
||||||
if config or both:
|
if config or both:
|
||||||
print('graph_title Amavisd mail filter mail counts')
|
print('graph_title Amavis mail filter mail counts')
|
||||||
print('graph_period minute')
|
print('graph_period minute')
|
||||||
print('graph_vlabel mails per ${graph_period}')
|
print('graph_vlabel mails per ${graph_period}')
|
||||||
print('graph_args --base 1000 --lower-limit 0')
|
print('graph_args --base 1000 --lower-limit 0')
|
||||||
|
@ -154,7 +154,7 @@ def print_status(config):
|
||||||
# Elapsed times
|
# Elapsed times
|
||||||
print('multigraph amavis_times')
|
print('multigraph amavis_times')
|
||||||
if config or both:
|
if config or both:
|
||||||
print('graph_title Amavisd mail filter elapsed times')
|
print('graph_title Amavis mail filter elapsed times')
|
||||||
print('graph_vlabel seconds per mail')
|
print('graph_vlabel seconds per mail')
|
||||||
print('graph_args --base 1000 --lower-limit 0')
|
print('graph_args --base 1000 --lower-limit 0')
|
||||||
print('graph_category spamfilter')
|
print('graph_category spamfilter')
|
||||||
|
@ -182,7 +182,7 @@ def print_status(config):
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == 'autoconf':
|
if len(sys.argv) > 1 and sys.argv[1] == 'autoconf':
|
||||||
print('yes' if get_values()['agent'] else
|
print('yes' if get_values()['agent'] else
|
||||||
'no (amavisd is not running)')
|
'no (amavis is not running)')
|
||||||
elif len(sys.argv) > 1 and sys.argv[1] == 'config':
|
elif len(sys.argv) > 1 and sys.argv[1] == 'config':
|
||||||
print_status(True)
|
print_status(True)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue