SYNOPSIS_="$NAME_"
REQUIRES_="standard GNU commands, apt, dpkg"
VERSION_="1.17"
- DATE_="2010-09-23; last update: 2013-10-24"
+ DATE_="2010-09-23; last update: 2013-10-29"
AUTHOR_="Andy Witter <awitter@georgialibraries.org>"
URL_="http://evergreen-ils.org"
CATEGORY_="devel"
WD=$(dirname $(readlink -f $0))
CUSTOMDIR="$WD/custom"
-EG_VERSION="2.5-rc1"
+EG_VERSION="2.5r1"
UBUNTU_CODENAME="precise"
LICENSE="$WD/License.txt"
TEMPLATEDIR="$WD/templates"
echo >> $TMPMUNINCONF
done
-## copy munin.conf to monitor servers.
+## copy munin.conf and apache2 munin vhost to monitor servers.
for MONITOR in ${MACHINES_MONITOR}
do
mkdir -p "$OUTDIR/$MONITOR/etc/munin"
+ mkdir -p "$OUTDIR/etc/apache2/sites-available"
cp -f "$TMPMUNINCONF" "$OUTDIR/$MONITOR/etc/munin"
+ cp -f "$TEMPLATEDIR/monitor/munin-vhost.conf" "$OUTDIR/$MONITOR/etc/apache2/sites-available"
+ sed -i "s^CLUSTER_DOMAIN_NAME^${CLUSTERDOMAINNAME}" "$OUTDIR/$MONITOR/etc/apache2/sites-available"
done
--- /dev/null
+<VirtualHost *:80>
+ ServerAdmin webmaster@CLUSTER_DOMAIN_NAME
+ ServerName munin.CLUSTER_DOMAIN_NAME
+ DocumentRoot /var/cache/munin/www
+ <Directory />
+ Options FollowSymLinks
+ AllowOverride None
+ </Directory>
+ LogLevel notice
+ CustomLog /var/log/apache2/access.log combined
+ ErrorLog /var/log/apache2/error.log
+ ServerSignature On
+</VirtualHost>
## Monitored hosts
SetupMonitoring
+## Setup Apache2 for Munin.
+if [ -e /etc/apache2/sites-available/munin-vhost.conf ]
+then
+ a2ensite munin-vhost.conf
+fi
### Enhance bashrc for root.
cat > bashrc-options.txt << EOF