Skip to content

Commit

Permalink
Update (c) year + doc + autoconf
Browse files Browse the repository at this point in the history
  • Loading branch information
ldidry committed Jan 7, 2014
1 parent 5d430dd commit bcffd7d
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions postfwd2
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit bcffd7d

Please sign in to comment.