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 <awitter@georgialibraries.org>"
URL_="http://evergreen-ils.org"
CATEGORY_="devel"
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
--- /dev/null
+<!DOCTYPE HTML>\r
+<html>\r
+<head>\r
+<meta charset="utf-8">\r
+<title>Evergreen Cluster Monitoring | Home</title>\r
+<style type="text/css">\r
+\r
+body {\r
+ font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;\r
+ background: white;\r
+ margin: 0;\r
+ padding: 0;\r
+ color: #000;\r
+ font-size: small;\r
+}\r
+\r
+ul, ol, dl { \r
+ padding: 0;\r
+ margin: 0;\r
+}\r
+h1, h2, h3, h4, h5, h6, p {\r
+ margin-top: 0;\r
+ padding-right: 15px;\r
+ padding-left: 15px;\r
+}\r
+a img {\r
+ border: none;\r
+}\r
+\r
+a:link {\r
+ color: #69A088;\r
+ text-decoration: underline;\r
+}\r
+a:visited {\r
+ color: #6E6C64;\r
+ text-decoration: underline;\r
+}\r
+a:hover, a:active, a:focus {\r
+ text-decoration: none;\r
+ font-size: small;\r
+}\r
+\r
+.container {\r
+ width: 100%;\r
+ background: #FFFFFF;\r
+ margin: 0 auto; \r
+}\r
+\r
+header {\r
+ background: linear-gradient(#00593D, #007A54) repeat scroll 0 0 #007A54;\r
+ vertical-align: central;\r
+}\r
+.sidebar1 {\r
+ float: left;\r
+ width: 180px;\r
+ height: 100%;\r
+ background: #007A54;\r
+ padding-top:45px;\r
+ padding-bottom: 50px;\r
+ \r
+}\r
+.content {\r
+ padding: 10px 0;\r
+ width: 780px;\r
+ float: left;\r
+}\r
+\r
+\r
+.content ul, .content ol {\r
+ padding: 0 15px 15px 40px;\r
+}\r
+\r
+nav ul {\r
+ list-style: none;\r
+}\r
+\r
+nav ul a, nav ul a:visited {\r
+ padding: 5px 5px 5px 15px;\r
+ display: block;\r
+ width: 160px;\r
+ text-decoration: none;\r
+ background: #007A54;\r
+}\r
+nav ul a:hover, nav ul a:active, nav ul a:focus {\r
+ background: #00593D;\r
+ color: #FFF;\r
+}\r
+\r
+/* ~~ The footer ~~ */\r
+footer {\r
+ padding: 10px 0;\r
+ background: linear-gradient(#007A54, #00593D) repeat scroll 0 0 #00593D;\r
+ position: relative;\r
+ clear: both;\r
+}\r
+\r
+header, section, footer, aside, nav, article, figure {\r
+ display: block;\r
+}\r
+.footer_text {\r
+ color: #FFF;\r
+ font-size: small;\r
+}\r
+\r
+</style>\r
+\r
+</head>\r
+\r
+<body>\r
+\r
+<div class="container">\r
+ <header>\r
+ <p><a href="#"></a></p>\r
+ <a href="#"><a href="#"><img src="images/small_logo.png" alt="Evergreen Logo" width="187" height="33" hspace="15" vspace="25"></a></header>\r
+ <div class="sidebar1">\r
+ <nav>\r
+ <ul>\r
+ <li><a href="http://munin.CLUSTER_DOMAIN_NAME"><img src="images/munin.png" alt="Munin" width="140" height="40" align="middle"></a></li>\r
+ <li><a href="http://icinga.CLUSTER_DOMAIN_NAME"><img src="images/icinga.png" alt="Icinga" width="140" height="64" align="middle"></a></li>\r
+ </ul>\r
+ </nav>\r
+ </div>\r
+ <article class="content">\r
+ <h1>Evergreen Cluster Monitoring Home</h1>\r
+ <section>\r
+ <p>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.</p>\r
+ <p>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.</p>\r
+ </section>\r
+ </article>\r
+ <footer> \r
+ <p><span class="footer_text">For more information on the Icinga and Munin products visit the</span> <a href="http://munin-monitoring.org/" title="Munin Monitoring Project Site" target="_new">Munin</a> <span class="footer_text">or</span> <a href="https://www.icinga.org/" title="Icinga Project Site" target="_blank">Icinga</a> <span class="footer_text">project sites.</span></p>\r
+ </footer>\r
+</div>\r
+</body>\r
+</html>\r