From b5491f9efaea6fe0f6de7310315c2d9e7e64a7c7 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Thu, 9 May 2013 08:26:41 -0400 Subject: [PATCH] Remove old function for setting up monitoring. --- templates/setup-drone.sh | 13 ------------- templates/setup-head.sh | 12 ------------ templates/setup.sh | 12 ------------ 3 files changed, 37 deletions(-) diff --git a/templates/setup-drone.sh b/templates/setup-drone.sh index 73f9904..3daa7a2 100755 --- a/templates/setup-drone.sh +++ b/templates/setup-drone.sh @@ -192,19 +192,6 @@ sleep 1 ### Setup Monitoring ## Monitored hosts SetupMonitoring -#if [ -e /etc/nagios/nrpe.cfg ] -#then -# if [ -e ${WD}/monitoring/.setup_monitoring.sh ] -# then -# mkdir -p /etc/nagios -# ${WD}/monitoring/.setup_monitoring.sh -# else -# echo -# echo "Cannot configure monitoring" -# echo ".setup_monitoring.sh is missing." -# fi -#fi - echo echo "Done! This system is now a drone" diff --git a/templates/setup-head.sh b/templates/setup-head.sh index 105b6e8..63e6fc1 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -348,18 +348,6 @@ echo 'PS1="\[\033[1;33m\]\`if [[ -e /openils/var/web/ldirectorping.txt ]]; then ### Setup Monitoring ## Monitored hosts SetupMonitoring -#if [ -e /etc/nagios/nrpe.cfg ] -#then -# if [ -e ${WD}/monitoring/.setup_monitoring.sh ] -# then -# mkdir -p /etc/nagios -# ${WD}/monitoring/.setup_monitoring.sh -# else -# echo -# echo "Cannot configure monitoring" -# echo ".setup_monitoring.sh is missing." -# fi -#fi echo diff --git a/templates/setup.sh b/templates/setup.sh index 58fd355..92f954c 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -622,18 +622,6 @@ fi ## Monitored hosts SetupMonitoring -#if [ -e /etc/nagios/nrpe.cfg ] -#then -# if [ -e ${WD}/monitoring/.setup_monitoring.sh ] -# then -# mkdir -p /etc/nagios -# ${WD}/monitoring/.setup_monitoring.sh -# else -# echo -# echo "Cannot configure monitoring" -# echo ".setup_monitoring.sh is missing." -# fi -#fi ### Enhance bashrc for root. -- 2.11.0