From: Andy Witter Date: Thu, 9 May 2013 13:55:09 +0000 (-0400) Subject: Move original hostgroups.cfg to hostgroups.cfg-orig X-Git-Tag: GenaSYS-2.3.6~11 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5e370e7ed98961af9d54a3522c0d5ddf00523c15;p=contrib%2Fpines%2Fgenasys.git Move original hostgroups.cfg to hostgroups.cfg-orig --- 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"