From 5e370e7ed98961af9d54a3522c0d5ddf00523c15 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Thu, 9 May 2013 09:55:09 -0400 Subject: [PATCH] Move original hostgroups.cfg to hostgroups.cfg-orig --- templates/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/setup.sh b/templates/setup.sh index 92f954c..04152a4 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -458,10 +458,11 @@ then then ### Install Icinga echo;echo -e $COL_BR_GREEN "Installing latest Icinga for Monitoring"$COL_RESET;echo - apt-get update && apt-get -y install icinga nagios-nrpe-plugin + apt-get update && apt-get -y install icinga nagios-nrpe-plugin nagios-nrpe-server ### Configure Icinga/Nagios [ -e "/etc/icinga/commands.cfg" ] && cp /etc/icinga/commands.cfg /etc/icinga/commands.cfg-orig [ -e "/etc/icinga/objects/services.cfg" ] && cp /etc/icinga/objects/services.cfg /etc/icinga/objects/services.cfg-orig + [ -e "/etc/icinga/objects/hostgroups-icinga.cfg" ] && cp /etc/icinga/objects/hostgroups-icinga.cfg /etc/icinga/objects/hostgroups-icinga.cfg-orig [ -e "/etc/icinga/objects/hostgroups.cfg" ] && cp /etc/icinga/objects/hostgroups.cfg /etc/icinga/objects/hostgroups.cfg-orig [ -e "/etc/icinga/objects/hosts.cfg" ] && cp /etc/icinga/objects/hosts.cfg /etc/icinga/objects/hosts.cfg-orig cp -f "$MONITOR_DIR/commands.cfg" "/etc/icinga" -- 2.11.0