From: Andy Witter Date: Wed, 6 Nov 2013 21:20:04 +0000 (-0500) Subject: Add landing page for monitor servers. X-Git-Tag: GenaSYS-2.5.0~10 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fddbee3bdcf9ad4bc7f276d0f9cac8fa3d3da094;p=contrib%2Fpines%2Fgenasys.git Add landing page for monitor servers. --- diff --git a/GenaSYS.sh b/GenaSYS.sh index 7957405..d13845a 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -25,8 +25,8 @@ PURPOSE_="Generate config files needed for Evergreen-ILS Cluster" SYNOPSIS_="$NAME_" REQUIRES_="standard GNU commands, apt, dpkg" - VERSION_="1.20" - DATE_="2010-09-23; last update: 2013-11-05" + VERSION_="1.21" + DATE_="2010-09-23; last update: 2013-11-06" AUTHOR_="Andy Witter " URL_="http://evergreen-ils.org" CATEGORY_="devel" @@ -2331,11 +2331,15 @@ for MONITOR in $MACHINES_MONITOR do mkdir -p "$OUTDIR/$MONITOR/etc/icinga/objects" mkdir -p "$OUTDIR/$MONITOR/etc/apache2/sites-available" + mkdir -p "$OUTDIR/$MONITOR/var/www" cp -f "$TEMPLATEDIR/monitor/icinga-vhost.conf" "$OUTDIR/$MONITOR/etc/apache2/sites-available" cp -f "$TMPFOLDER/hosts.cfg" "$OUTDIR/$MONITOR/etc/icinga/objects" cp -f "$TMPFOLDER/hostgroups.cfg" "$OUTDIR/$MONITOR/etc/icinga/objects" cp -f "$TEMPLATEDIR/monitor/services.cfg" "$OUTDIR/$MONITOR/etc/icinga/objects" + cp -f "$TEMPLATEDIR/monitor/index.html" "$OUTDIR/$MONITOR/var/www" + cp -fR "$TEMPLATEDIR/monitor/images" "$OUTDIR/$MONITOR/var/www" sed -i "s^CLUSTER_DOMAIN_NAME^${CLUSTERDOMAINNAME}^g" "$OUTDIR/$MONITOR/etc/apache2/sites-available/icinga-vhost.conf" + sed -i "s^CLUSTER_DOMAIN_NAME^${CLUSTERDOMAINNAME}^g" "$OUTDIR/$MONITOR/var/www/index.html" #cp -f "$TEMPLATEDIR/monitor/commands.cfg" "$OUTDIR/$MONITOR/etc/icinga" ### Generate sources.list for apt to install icinga diff --git a/templates/monitor/images/icinga.png b/templates/monitor/images/icinga.png new file mode 100644 index 0000000..47259c8 Binary files /dev/null and b/templates/monitor/images/icinga.png differ diff --git a/templates/monitor/images/munin.png b/templates/monitor/images/munin.png new file mode 100644 index 0000000..eec05d4 Binary files /dev/null and b/templates/monitor/images/munin.png differ diff --git a/templates/monitor/images/small_logo.png b/templates/monitor/images/small_logo.png new file mode 100644 index 0000000..47ef919 Binary files /dev/null and b/templates/monitor/images/small_logo.png differ diff --git a/templates/monitor/index.html b/templates/monitor/index.html new file mode 100644 index 0000000..7c5d0d4 --- /dev/null +++ b/templates/monitor/index.html @@ -0,0 +1,135 @@ + + + + +Evergreen Cluster Monitoring | Home + + + + + + +
+
+

+ Evergreen Logo
+
+ +
+
+

Evergreen Cluster Monitoring Home

+
+

By default, GenaSYS installs two monitoring platforms for keeping tabs on the performance and status of cricitical services in the Evergreen cluster. Please use the links on the left to access these tools.

+

These sites are each password protected. The usernames for each are "icingaadmin" or "muninadmin", respectively, along with the password you chose when you ran GenaSYS.sh initially to build the cluster. If you have forgotten your entry, look back at your .conf file in your GenaSYS build directory.

+
+
+ +
+ +