LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-18-2015, 05:04 PM   #1
Michael Barto
LQ Newbie
 
Registered: May 2015
Posts: 4

Rep: Reputation: Disabled
Smile Nagios 4.08 on CentOS6


Nagious is running find on my CentOS5, running Nagios 4.08, but

I get this error
"Starting httpd: [Wed Nov 18 14:42:35 2015] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results", when I start apache.

There are the two files that may messed, /etc/http/conf.d/nagios.conf and /etc/httpd/conf.d/ssl.conf. I read a lot about ssl.con and that seems to be OK. Is there any log file or way to figure out what is causing it. Here is the nagios.conf file (as it is short.


<VirtualHost *:80>
ServerName nagios.mydomain.com
ErrorLog /var/log/httpd/nagios/error_log
CustomLog /var/log/httpd/nagios/access_log common
</VirtualHost>

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Location "/usr/local/nagios/sbin">
Order deny,allow
Deny from all
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
AuthName "No entry, unless"
Require Valid-user
Allow from 192.168.1
Satisfy Any
</Location>

<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Thanks in advance

Last edited by Michael Barto; 11-19-2015 at 02:48 PM. Reason: File was incomplete. Revise Domain
 
Old 11-18-2015, 05:28 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Error messages like this, which probably occur in a very narrow context only, are ideal for googling. I found this here, perhaps it matches your case?

http://serverfault.com/questions/767...ports-with-a-n
 
1 members found this post helpful.
Old 11-19-2015, 02:49 PM   #3
Michael Barto
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
I had found that solution on the web, before I posted my question on the web. It did not work. A point needs to be made that nagios is using https.
 
Old 11-19-2015, 05:41 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Michael Barto View Post
I had found that solution on the web, before I posted my question on the web. It did not work.
It did not work isn't going to help us help you.
Errors are usually logged in /var/log/httpd/error_log
You should examine this file for tell-tale signals about the error that may not have been included in the starting of httpd.

What apache version?
Code:
httpd -V | head -1
Do you have a
Code:
NameVirtualHost *:80
directive in /etc/httpd/conf/httpd.conf?

How was nagios installed exactly?


See http://httpd.apache.org/docs/2.2/mod...amevirtualhost

Last edited by Habitual; 11-19-2015 at 05:44 PM.
 
Old 11-19-2015, 05:44 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Michael Barto View Post
I had found that solution on the web, before I posted my question on the web. It did not work. A point needs to be made that nagios is using https.
That's why the Linuxquestions guidelines (which, in my humble opinion, are well hidden unfortunately - I can't find them right now) include things like "tell us what you have done to resolve the problem". It's a great time saver for people who respond, and ultimately for you as well.
 
Old 11-20-2015, 12:19 PM   #6
Michael Barto
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
This is solve. I inherited this problem, some have enter

NameVirtualHost * in the /etc/conf/httpd.conf file. Once I added a port, the error stop. Thanks to those Linux users that helps me with this.
 
Old 11-23-2015, 05:51 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Michael Barto View Post
This is solve. I inherited this problem, some have enter

NameVirtualHost * in the /etc/conf/httpd.conf file. Once I added a port, the error stop. Thanks to those Linux users that helps me with this.
Glad it worked out!
 
  


Reply

Tags
apache, nagios, ssl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios :: Forbidden You dont have a permission to access /nagios/cgi-bin/ bala.linuxtech Linux - Software 4 07-07-2013 03:19 AM
nagios not working (http://localhost/nagios or http://ip/nagios) 404 error connect2janu Linux - Server 1 11-18-2012 02:06 AM
LXer: April Nagios Training Dates Include Advanced Nagios Class LXer Syndicated Linux News 0 03-18-2011 09:30 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration