Package: munin-node
Version: 1.2.4-1
Severity: wishlist
Tags: patch

Hi.

Currently, the spool directory is somewhat hardcoded in the plugin even
though it can be overridden by an environment variable. It would be nice
if the plugin automatically found the right path as long as the
"postconf" binary works correctly (i.e. the configuration files are at
their default location). Attached is a patch which implements this.

Regards,
Sven
diff -ur munin-1.2.4/node/node.d/postfix_mailqueue.in 
munin-1.2.4.new/node/node.d/postfix_mailqueue.in
--- munin-1.2.4/node/node.d/postfix_mailqueue.in        2005-10-08 
12:11:01.000000000 +0200
+++ munin-1.2.4.new/node/node.d/postfix_mailqueue.in    2006-08-17 
01:33:41.482301467 +0200
@@ -30,8 +30,9 @@
 #%# family=auto
 #%# capabilities=autoconf
 
-# Can be set via environment, but default is /var/spool/postfix
-SPOOLDIR=${spooldir:-/var/spool/postfix}
+# Can be set via environment, but default is fetched by postconf and
+# usually is /var/spool/postfix
+SPOOLDIR=${spooldir:-`postconf -h queue_directory`}
 
 # Postfix mqueue management: http://www.postfix.cs.uu.nl/queuing.html
 # maildrop: Localy posted mail

Reply via email to