Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2010 23:09:08 GMT
From:      Rob B <rbyrnes@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/147345: sysutils/munin-node pulls in all files in config directory
Message-ID:  <201006022309.o52N98T3002966@www.freebsd.org>
Resent-Message-ID: <201006022310.o52NA7UB035365@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         147345
>Category:       ports
>Synopsis:       sysutils/munin-node pulls in all files in config directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 02 23:10:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Rob B
>Release:        8.1-PREPRELEASE
>Organization:
>Environment:
FreeBSD riff.number6 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #6: Thu May 20 10:48:53 EST 2010     root@riff.number6:/usr/obj/usr/src/sys/RIFF  i386
>Description:
sysutils/munin-node appears to pull in all files in /usr/local/etc/munin/ directory

This causes a problem for some plugins.  In the case of postfix_mailstats (included in the default port), the env.logfile variable ends up as /var/log//var/log/maillog and the plugin no longer functions.

This can be verified by running:

munin-run --debug postfix_mailstats autoconf
# Processing plugin configuration from
/usr/local/etc/munin/plugin-conf.d/plugins.conf
# Processing plugin configuration from
/usr/local/etc/munin/plugin-conf.d/plugins.conf.sample
                              ^^^^^^^^^^^ <-- The cause

# Warning: Root privileges are required to change user/group.  The
plugin may not behave as expected.
# Setting up environment
# Environment logfile = /var/log/maillog
# About to run '/usr/local/etc/munin/plugins/postfix_mailstats autoconf'
no (logfile '/var/log//var/log/maillog' not found)
              ^^^^^^^^^^ <-- The result
>How-To-Repeat:

*Install munin-node
*Copy /usr/local/etc/munin/plugin-conf.d/plugins.conf.sample to /usr/local/etc/munin/plugin-conf.d/plugins.conf
*Enable the postfix_mailstats plugin and configure thus:

[postfix*]
user root
env.logfile maillog
>Fix:
Since the port already changes the default munin-node.conf, the line:

ignore_file \.sample$ 

needs to be added to files/patch-munin-node.conf.in 

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006022309.o52N98T3002966>