This should make nagios more ipfire-like

This commit is contained in:
maniacikarus
2009-03-14 15:05:17 +01:00
parent 0ddd56da9b
commit ae882c0017
4 changed files with 7 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
Listen 1007
<VirtualHost *:1007>
</VirtualHost>

View File

@@ -1,3 +1,4 @@
etc/httpd/conf/vhosts.d/esniper.conf
#etc/nagios
etc/nagios/cgi.cfg
etc/nagios/nagios.cfg

View File

@@ -105,6 +105,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--with-nagios-user=nobody --with-nagios-group=nobody
cd $(DIR_SRC)/nagios-plugins* && make $(MAKETUNING)
cd $(DIR_SRC)/nagios-plugins* && make install
chown -R nobody:nobody /var/nagios
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -24,16 +24,6 @@
. /opt/pakfire/lib/functions.sh
extract_files
restore_backup ${NAME}
chown -R nobody:nobody /var/nagios
cat > /etc/httpd/conf/vhosts.d/nagios.conf <<EOF
Listen 1008
<VirtualHost *:1007>
include /etc/httpd/conf/conf.d/nagios.conf
</VirtualHost>
EOF
htpasswd -bmc /etc/nagios/htpasswd.users nagiosadmin nagios
/etc/init.d/apache restart
start_service --background ${NAME}