tag 536486 moreinfo
thanks
Hallo Jan, hello *,
xcomm schrieb:
Package: munin Version: 1.2.6-12 Severity: normal
vi /etc/cron.d/munin 14 10 * * * munin if [ -x
/usr/share/munin/munin-limits ]; then /usr/share/munin/munin-limits
--force --contact nagios --contact old-nagios; fi
Results every day in a mail with Subject\: Cron <mu...@nids01> if [
-x /usr/share/munin/munin-limits ]; then
/usr/share/munin/munin-limits --force --contact nagios --contact
old-nagios; fi Body\: Noone opened our log file at startup! at
/usr/share/munin/munin-limits line 596.
This look a bit nasty.
it looks for me that your logfile has wrong permissions. Please try to
run munin-limits by hand and maybe you get this error:
sudo su - munin -c "LANG=C /usr/share/munin/munin-limits " -s /bin/bash
Warning: Could not open log file "/var/log/munin/munin-limits.log" for
writing: Permission deniedNoone opened our log file at startup! at
/usr/share/munin/munin-limits line 596.
The file should be owned by user "munin".
vi +"587" /usr/share/munin/munin-limits
> sub logger { my ($comment) =
@_; my $now = strftime "%b %d %H:%M:%S", localtime;
print "$now - $comment\n" if $stdout;
if ($log->opened) { print $log "$now - $comment\n"; } else { die
"Noone opened our log file at startup!"; } }
In Munin 1.2.6 the logfile is opened by the function logger_open()
(munin-limits:572) which is called by the Munin.pm (Munin.pm:540) perl
module during the munin_config() (munin-limits:88) run.
This changed in 1.3, where logger_open() is called directly by
munin-limits.
Found in the develpment version 1.3.4 a correction of the issue. sub
logger { my ($comment) = @_; my $now = strftime "%b %d %H:%M:%S",
localtime;
print "$now - $comment\n" if $stdout;
if ($log->opened) { print $log "$now - $comment\n"; } else { if
(!open ($log, ">>@@LOGDIR@@/munin-limits.log")) { print STDERR
"Warning: Could not open log file \"@@LOGDIR@@/munin-limits.log\" for
writing: $!"; } else { open (STDERR, ">&", $log); } } }
As it fails on @@LOGDIR@@ I changed it to the exact path here (You
may be better in defining LOGDIR;-)).
The @@LOGDIR@@ variable is set during the "building" of Munin, it is
substitute by the configured path from the Makefile.config.
Would you please check if the error happens even if the logfile has the
right permissions?
best regards,
Matthias Schmitz
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org