[Bug 800845] [NEW] plugin postfix_mailvolume invalid output when log file missing
Breena Kermott
800845 at bugs.launchpad.net
Wed Jun 22 19:00:56 UTC 2011
Public bug reported:
Package: munin-node
Version: 1.4.5-1ubuntu2 (and earlier)
Given:
Host has no /var/log/syslog file
Error output:
[WARNING] munin_set_var_loc: Setting unknown option 'value' at <removed
for security>;<removed for security>;postfix_mailvolume;delivered:
Issue:
Default log file does not exist and no override logfile set results in
invalid output (wrong name label)
Default log file:
my $LOGDIR = $ENV{'logdir'} || '/var/log';
my $LOGFILE = $ENV{'logfile'} || 'syslog';
Graph config callout:
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
print "graph_title Postfix bytes throughput\n";
print "graph_args --base 1000 -l 0\n";
print "graph_vlabel bytes / \${graph_period}\n";
print "graph_scale yes\n";
print "graph_category postfix\n";
print "volume.label throughput\n";
print "volume.type DERIVE\n";
print "volume.min 0\n";
exit 0;
}
Output on log file missing:
if (! -f $logfile) {
print "delivered.value U\n";
exit 1;
}
Fix:
s/delivered.value/volume.value/
Diff: (file: /usr/share/munin/plugins/postfix_mailvolume)
if (! -f $logfile) {
- print "delivered.value U\n";
+ print "volume.value U\n";
exit 1;
}
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: munin-node 1.4.5-1ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
Architecture: amd64
Date: Wed Jun 22 11:57:00 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: munin
** Affects: munin (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug munin-node
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to munin in Ubuntu.
https://bugs.launchpad.net/bugs/800845
Title:
plugin postfix_mailvolume invalid output when log file missing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/munin/+bug/800845/+subscriptions
More information about the Ubuntu-server-bugs
mailing list