summaryrefslogtreecommitdiffstats
path: root/nagios-server-addons.spec.in
diff options
context:
space:
mode:
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