summaryrefslogtreecommitdiffstats
path: root/nagios-server-addons.spec.in
diff options
context:
space:
mode:
authorRamesh Nachimuthu <rnachimu@redhat.com>2014-11-14 09:41:41 +0530
committerSahina Bose <sabose@redhat.com>2014-11-17 21:37:05 -0800
commit1a9d3e25e46db64d66a6ac26b20f831608794da8 (patch)
treef887c29584b59c35c12f3c4c1780fc6608395a9d /nagios-server-addons.spec.in
parentaf2463b0c05d2618b1b83e82873bf0570dccf068 (diff)
Revert "packaging: install temp_node1.cfg only for the first time"
This reverts commit 11f96adbb1f8bff8cf7b385da10200a5627d980a. Bug-Url:https://bugzilla.redhat.com/1162446 Bug-Url:https://bugzilla.redhat.com/1162443 Change-Id: I831bb0c84721a0c3181a2d58421520a6fb788621 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/9122 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'nagios-server-addons.spec.in')
-rw-r--r--nagios-server-addons.spec.in27
1 files changed, 0 insertions, 27 deletions
diff --git a/nagios-server-addons.spec.in b/nagios-server-addons.spec.in
index 9a51759..23149d3 100644
--- a/nagios-server-addons.spec.in
+++ b/nagios-server-addons.spec.in
@@ -126,33 +126,6 @@ rm -rf %{buildroot}
NagiosCFGFile="/etc/nagios/nagios.cfg"
sed -i '/etc\/nagios\/objects\/localhost.cfg/d' $NagiosCFGFile
-
-if [ "$1" -eq 1 ]; then
-LocalhostCfgFile="%{_sysconfdir}/nagios/gluster/default/temp_node1.cfg"
-cat > $LocalhostCfgFile << EOF
-#####################################################################
-# Configuration for dummy host temp_node1 with service check_ping #
-# This dummy host is added to avoid nagios from erroring out before #
-# auto-discovery script is run, This file will be renamed by auto- #
-# discovery script to remove this configuration. #
-#####################################################################
-
-define host{
- use linux-server
- host_name temp_node1
- alias localhost
- address 127.0.0.1
-}
-
-define service{
- use local-service
- host_name temp_node1
- service_description PING
- check_command check_ping!100.0,20%!500.0,60%
-}
-EOF
-fi
-
if grep -q "#process_performance_data=0" $NagiosCFGFile; then
sed -i -e 's/#process_performance_data=0/process_performance_data=1/g' $NagiosCFGFile
elif grep -q "process_performance_data=0" $NagiosCFGFile ; then