Commit bcffd7db authored by Luc Didry's avatar Luc Didry
Browse files

Update (c) year + doc + autoconf

parent 5d430dd8
......@@ -7,7 +7,7 @@
=head1 AUTHOR AND COPYRIGHT
Copyright 2013 Luc Didry <luc AT didry.org>
Copyright 2013-2014 Luc Didry <luc AT didry.org>
=head1 HOWTO CONFIGURE AND USE :
......@@ -17,7 +17,7 @@
[postfwd2]
user root
env.path /usr/local/sbin/postfwd2 # OPTIONAL : look for postfwd2 in /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin
env.path /usr/local/sbin/postfwd2 # OPTIONAL : looks for postfwd2 in /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin
env.include .*ISBAD #OPTIONAL
env.exclude .*ISGOOD #OPTIONAL
......@@ -35,22 +35,17 @@
if none are set, all the policy will be used.
=item - /etc/munin/plugins-enabled
=item - /etc/munin/plugins
ln -svf ../plugins-available/site/postfwd2
cp postfwd2 /etc/munin/plugins
=item - restart Munin node
sudo killall -TERM munin-node
service munin-node restart
=back
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=head1 LICENSE
This program is free software: you can redistribute it and/or modify it under
......@@ -136,12 +131,6 @@ if (defined($include) && (!defined($exclude))) {
$exclude = '.*';
}
##### autoconf
if( (defined $ARGV[0]) && ($ARGV[0] eq 'autoconf') ) {
print 'yes', "\n";
munin_exit_done();
}
##### Cache file, to continue to graph old policies which doesn't exist anymore
if (!(-f $CACHEFILE) || !(-e $CACHEFILE)) {
open (FILE, ">", $CACHEFILE) or munin_exit_fail();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment