plugin postfix_mailvolume invalid output when log file missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
munin |
Fix Released
|
Unknown
|
|||
munin (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
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>
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_
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.
Diff: (file: /usr/share/
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
ProcVersionSign
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)
PackageArchitec
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: munin
Related branches
Changed in munin (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in munin (Ubuntu): | |
status: | Triaged → In Progress |
Changed in munin: | |
status: | Unknown → New |
Changed in munin: | |
status: | New → Fix Released |
This bug was fixed in the package munin - 1.4.6-2ubuntu2
---------------
munin (1.4.6-2ubuntu2) precise; urgency=low
* Fix sensors_fan for sensors output without minimum values patches/ lp_840449_ sensors_ fan_minimum_ is_optional. patch patches/ upstream_ bug_884_ fixed_in_ trunk.patch patches/ upstream_ bug_937_ fixed_in_ trunk.patch
(LP: #840449).
- debian/
* Fix "mysql_ plugin fails when MySQL compiled without INNODB"
(LP: #757617)
- debian/
* Fix munin_stats plugin: missing newline in "config"
(LP: #830564).
- debian/
* Fix postfix_mailvolume when logfile is missing
(LP: #800845).
-- Chuck Short <email address hidden> Fri, 06 Jan 2012 08:54:54 -0500