Nagios 4.0.4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
limagios
Posts: 9
Joined: Sat Aug 22, 2015 6:16 am

Nagios 4.0.4

Post by limagios »

Hi,
I have a problem when Im installing Nagios 4.0.4

I followed all the steps of this link:
https://assets.nagios.com/downloads/nag ... Source.pdf

Well, I have a vm of ubuntu 14.04LTS and Apache works correctly. But trying to access http://localhost/nagios doesn`t work.
the error is:
Not Found
the requested URL /nagios was not found on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80


I think maybe the problem is that nagios has installed in a wrong path, and in that case apache can`t find it.

Can someone explain me how to solve this problem? Is the documentation of the link correct?

Thanks,
Attachments
nagios.JPG
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios 4.0.4

Post by Box293 »

Here's a guide I did a while ago:

http://sites.box293.com/nagios/guides/i ... untu-14-04

I believe the key to your problem lies with the configure command, it needs to be pointed to the /etc/apache2/sites-enabled location:

Code: Select all

./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail --with-httpd-conf=/etc/apache2/sites-enabled
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
limagios
Posts: 9
Joined: Sat Aug 22, 2015 6:16 am

Re: Nagios 4.0.4

Post by limagios »

Thank you so much@Box293,

Code: Select all

The problem was that I forgot put these commands:
Type iptables -I INPUT -p tcp --destination-port 80 -j ACCEPT and press Enter
Type apt-get install -y iptables-persistent and press Enter
Press Enter on Yes to save current IPv4 rules
Type a2enmod rewrite and press Enter
Type a2enmod cgi and press Enter
Type service apache2 restart and press Enter
Congrats for your link.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios 4.0.4

Post by hsmith »

limagios wrote:Thank you so much@Box293,

Code: Select all

The problem was that I forgot put these commands:
Type iptables -I INPUT -p tcp --destination-port 80 -j ACCEPT and press Enter
Type apt-get install -y iptables-persistent and press Enter
Press Enter on Yes to save current IPv4 rules
Type a2enmod rewrite and press Enter
Type a2enmod cgi and press Enter
Type service apache2 restart and press Enter
Congrats for your link.
Is this one working now?
Former Nagios Employee.
me.
limagios
Posts: 9
Joined: Sat Aug 22, 2015 6:16 am

Re: Nagios 4.0.4

Post by limagios »

Yes, now its working. :)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios 4.0.4

Post by hsmith »

limagios wrote:Yes, now its working. :)
Great. I am going to lock this topic. Please feel free to post if you have additional questions!
Former Nagios Employee.
me.
Locked