mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
This should make nagios more ipfire-like
This commit is contained in:
5
config/httpd/vhosts.d/nagios.conf
Normal file
5
config/httpd/vhosts.d/nagios.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
Listen 1007
|
||||
|
||||
<VirtualHost *:1007>
|
||||
|
||||
</VirtualHost>
|
||||
@@ -1,3 +1,4 @@
|
||||
etc/httpd/conf/vhosts.d/esniper.conf
|
||||
#etc/nagios
|
||||
etc/nagios/cgi.cfg
|
||||
etc/nagios/nagios.cfg
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user