Your message dated Thu, 3 Feb 2011 21:25:29 +0100
with message-id <[email protected]>
and subject line probably not
has caused the Debian Bug report #609912,
regarding please document steps needed to get cgi-graphing to work
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
609912: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609912
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
package: munin
version: 1.4.5-3
severity: wishlist
Hi,
cgi-graphing is not enabled out of the box and needs some manual steps to
work, some of which are not or under documented.
This is a rough howto:
in /etc/apache2/sites-available/ add:
Alias /munin /var/cache/munin/www
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Location /usr/lib/cgi-bin/munin-cgi-graph>
SetHandler fastcgi-script
</Location>
then run:
a2enmod cgi
/etc/init.d/apache2 force-reload
then run:
# munin-cgi-graph should be able to write to the log file and graphics files.
adduser --quiet munin www-data
[ -f /var/log/munin/munin-graph.log ] || touch /var/log/munin/munin-graph.log
chgrp www-data /var/log/munin /var/log/munin/munin-graph.log
chmod g+w /var/log/munin /var/log/munin/munin-graph.log
chgrp -R www-data /var/cache/munin/www
chmod -R g+w /var/cache/munin/www
# now modify /etc/logrotate.d/munin
# (keep the entries not mentioned here...)
/var/log/munin/munin-graph.log {
daily
missingok
rotate 7
compress
notifempty
# modfied for cgi-graph:
create 660 munin www-data
}
# finally, append this to /etc/cron.d/munin
#
# workaround bug in munin-html with cgi-graphing every other hour
23 */2 * * * root find /var/cache/munin/www/ -type f ! -perm 664 -exec
chmod 664 {} \;
24 */2 * * * root find /var/cache/munin/www/ -type d ! -perm 775 -exec
chmod 775 {} \;
25 */2 * * * root find /var/cache/munin/www/ -type f ! -group
www-data -exec chgrp www-data {} \;
The last thing should really be fixed in munin-html, and the logrotate file
should also be fixed to support both cgi and legacy graphing.
cheers,
Holger
signature.asc
Description: This is a digitally signed message part.
--- End Message ---
--- Begin Message ---
Hi,
I don't think the release notes are the right place to hold the munin
package documentation, closing this. If there's a specific suggestion
please send a patch.
Cheers,
Julien
signature.asc
Description: Digital signature
--- End Message ---