-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo Matthias, hello |Holger, hello |*,
Thanks for coming back to this issue. It looks as if the issue is completely gone now. I just swapped /usr/share/munin/munin-limits back to original and it worked fine now. sudo su - munin -c "LANG=C /usr/share/munin/munin-limits " -s /bin/bash results in no error too. The logfile has this permissions not changed from me. - -rw-r----- 1 munin adm 1573857 2009-08-03 12:03 /var/log/munin/munin-limits.log Best regards, Jan P.S.: @@LOGDIR@@ - now I understand this- thanks! :-) Matthias Schmitz wrote: > 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 - -- "Eigentlich bin ich ganz anders... ...nur komme ich so selten dazu." * [http://en.wikipedia.org/wiki/Ödön_von_Horváth Ödön von Horváth] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp2uNUACgkQZ4Vo3ep5lKQKdwCePlNSLJRt1IsApaeSA+t0feBB Y6oAn1qK3wsqCBSydmLFktj3n9uIUm8G =Sbxu -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org