Hi, I am using apache2 for running all my nagios servers and all servers working fine with Ubuntu 10.4 and Apache 2.2.14 version but i am not able to understand why my nagios UI is not opening as i can see apache2 is failed to restart due to below error :
#root@d101:~# cat /etc/issue Ubuntu 12.04.5 LTS \n \l root@d101:~# apache apache2 apache2ctl apachectl root@dbmon1001:~# apache2 -V Server version: Apache/2.2.22 (Ubuntu) Server built: Jul 22 2014 14:35:25 Server's Module Magic Number: 20051115:30 Server loaded: APR 1.4.6, APR-Util 1.3.12 Compiled using: APR 1.4.6, APR-Util 1.3.12 Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) root@d101:~# /etc/init.d/apache2 restart Syntax error on line 31 of /etc/apache2/sites-enabled/graphite.conf: Name duplicates previous WSGI daemon definition. Action 'configtest' failed. The Apache error log may have more information. ...fail! root@dbmon1001:~# root >cat /etc/apache2/sites-enabled/graphite.conf: ( Bold/Italic are lines 21 and 31 respectively ) WSGISocketPrefix run/wsgi *WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL}* <VirtualHost *:8010> ServerName graphite DocumentRoot "/opt/graphite/webapp" ErrorLog /opt/graphite/storage/log/webapp/error.log CustomLog /opt/graphite/storage/log/webapp/access.log common # I've found that an equal number of processes & threads tends # to show the best performance for Graphite (ymmv). * WSGIDaemonProcess graphite processes=20 threads=20 display-name='%{GROUP}' inactivity-timeout=120* WSGIProcessGroup graphite WSGIApplicationGroup %{GLOBAL} # XXX You will need to create this file! There is a graphite.wsgi.example # file in this directory that you can safely use, just copy it to graphite.wgsi WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi Alias /content/ /opt/graphite/webapp/content/ <Location "/content/"> SetHandler None </Location> # XXX In order for the django admin site media to work you # must change @DJANGO_ROOT@ to be the path to your django # installation, which is probably something like: # /usr/lib/python2.6/site-packages/django Alias /media/ "@DJANGO_ROOT@/contrib/admin/media/" <Location "/media/"> SetHandler None </Location> # The graphite.wsgi file has to be accessible by apache. It won't # be visible to clients because of the DocumentRoot though. <Directory /opt/graphite/conf/> Order deny,allow Allow from all </Directory> </VirtualHost> I checked in logs as well but there is no useful information regarding this error. Anyone faced this kind of issue before. Please let me know how can i fixed this kind of issue. Strange apache2 ports are listening : root@d101:~# netstat -lntp | grep apache2 tcp 0 0 0.0.0.0:8010 0.0.0.0:* LISTEN 10036/apache2 tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 10036/apache2 tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 10036/apache2 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 10036/apache2 root@d101:~# Thanks