From 3160d48379daf68812fc8400c2a3d5f41531d2ad Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Thu, 25 Apr 2013 09:47:27 -0400 Subject: [PATCH] Add monitoring services(icinga/nagios) to monitor01 --- templates/setup.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/setup.sh b/templates/setup.sh index c64f8b2..32e543c 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -364,7 +364,9 @@ then sed -i 's^-m 64^-m 6144^g' /etc/memcached.conf echo echo -e $COL_BRIGHT_RED"*** WARNING: "$COL_BRIGHT_CYAN "This Memcache server has been configured" - echo -e "for a MINimum of 8GB RAM" $COL_RESET + echo -e "for a MINimum of 8GB RAM. If you do not have at least 8GB of ram in this server please reconfigure" + echo -e "/etc/memcached.conf for the amount of ram in this server and leave some overhead for" + echo -e "the operating system. " $COL_RESET fi ### Setup Utility @@ -577,6 +579,15 @@ then fi fi fi + +if cat /etc/hostname | grep -q "monitor0" +then + if add-apt-repository ppa:formorer/icinga + then + apt-get update + apt-get install icinga + fi +fi ### Enhance bashrc for root. cat > bashrc-options.txt << EOF @@ -634,3 +645,4 @@ echo hostname for this node is $(cat /etc/hostname) echo echo "Please reboot this node for the changes to take effect." + -- 2.11.0