Trying to co host foreman and nagios on the same httpd server

I have a new RHEL 7.1 vm and would like to co host foreman and nagios under
the same httpd server.

I have installed foreman on the server with the URI of
http(s)://<SERVER>/foreman and installed nagios on the same machine
using the provided Redhat RPMs/Yum.

Foreman installs as a virtual host but I cannot seem to be able to get
nagios working. Each time I get a 404 error.

when I browse to http://<SERVER>/nagios I get a 404 error
with the default configuration I was being requested for the
username/password but then getting the error
"that the page I was looking for is not here"

I have confirmed that the index.php is in the DirectoryIndex listing.
but if I got to http://<SERVER>/nagios/main.php I get the default page
if I browse to http://<SERVER>/nagios/side.php I get the side bar although
the information provided is incorrect displayed.

I have an existing (working) instance of nagios on another server and have
tried to copy the monitoring config to this new machine
but the page is unable to display or process anything.

/usr/sbin/httpd -t reports ok.

I have tried replacing the default foreman config with a default non
virtual host config again with no joy.

This issue has been identified before as a problem with
after-foreman-install-my-icinga-interface-is-not-working
<http://serverfault.com/questions/630985/after-foreman-install-my-icinga-interface-is-not-working>
in this case the user disabled foreman in order to icinga working.

Can anyone identify what I am doing incorrectly.

> I have a new RHEL 7.1 vm and would like to co host foreman and nagios under
> the same httpd server.
>
> I have installed foreman on the server with the URI of
> http(s)://<SERVER>/foreman and installed nagios on the same machine
> using the provided Redhat RPMs/Yum.
>
> Foreman installs as a virtual host but I cannot seem to be able to get
> nagios working. Each time I get a 404 error.
>
> when I browse to http://<SERVER>/nagios I get a 404 error
> with the default configuration I was being requested for the
> username/password but then getting the error
> "that the page I was looking for is not here"
>
> I have confirmed that the index.php is in the DirectoryIndex listing.
> but if I got to http://<SERVER>/nagios/main.php I get the default page
> if I browse to http://<SERVER>/nagios/side.php I get the side bar although
> the information provided is incorrect displayed.
>
> I have an existing (working) instance of nagios on another server and have
> tried to copy the monitoring config to this new machine
> but the page is unable to display or process anything.
>
> /usr/sbin/httpd -t reports ok.
>
> I have tried replacing the default foreman config with a default non
> virtual host config again with no joy.
>
> This issue has been identified before as a problem with
> after-foreman-install-my-icinga-interface-is-not-working
> <http://serverfault.com/questions/630985/after-foreman-install-my-icinga-interface-is-not-working>
> in this case the user disabled foreman in order to icinga working.
>
> Can anyone identify what I am doing incorrectly.

I noticed you found a solution and upvoted your response on serverfault

Use foreman-installer --foreman-foreman-url, or specify the URL in
the interactive installer (-i, --interactive).

··· On 09/23, barry wrote:


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

Have you considered installing Nagios to a virtual host?

··· On Thursday, September 24, 2015 at 12:53:46 AM UTC-4, barry wrote: > > I have a new RHEL 7.1 vm and would like to co host foreman and nagios > under the same httpd server. > > I have installed foreman on the server with the URI of > http(s):///foreman and installed nagios on the same machine > using the provided Redhat RPMs/Yum. > > Foreman installs as a virtual host but I cannot seem to be able to get > nagios working. Each time I get a 404 error. > > when I browse to http:///nagios I get a 404 error > with the default configuration I was being requested for the > username/password but then getting the error > "that the page I was looking for is not here" > > I have confirmed that the index.php is in the DirectoryIndex listing. > but if I got to http:///nagios/main.php I get the default page > if I browse to http:///nagios/side.php I get the side bar although > the information provided is incorrect displayed. > > I have an existing (working) instance of nagios on another server and have > tried to copy the monitoring config to this new machine > but the page is unable to display or process anything. > > /usr/sbin/httpd -t reports ok. > > I have tried replacing the default foreman config with a default non > virtual host config again with no joy. > > This issue has been identified before as a problem with > after-foreman-install-my-icinga-interface-is-not-working > > in this case the user disabled foreman in order to icinga working. > > Can anyone identify what I am doing incorrectly. >

yes Daniel, that request was a way to find out how to install Foreman to
http(s)://<Server>/foreman.

This request is how to install Nagios and Foreman onto the same web
instance.

This morning I uninstalled both Foreman, httpd & Nagios. Then reinstalled
httpd & nagios onto the same server.
this worked exactly as expected. The Foreman install does something that
prevents Nagios from operating properly in the same web instance.

At this point in time I have done as per the quoted question and have left
Nagios off of the web server and am concentrating on
configuring the puppet/Foreman software.

If I get information to test the co location of Foreman and Nagios onto the
same web instance I will revisit it.

··· On Thursday, 24 September 2015 18:59:52 UTC+10, Daniel Lobato wrote: > > On 09/23, barry wrote: > > I have a new RHEL 7.1 vm and would like to co host foreman and nagios > under > > the same httpd server. > > > > I have installed foreman on the server with the URI of > > http(s):///foreman and installed nagios on the same machine > > using the provided Redhat RPMs/Yum. > > > > Foreman installs as a virtual host but I cannot seem to be able to get > > nagios working. Each time I get a 404 error. > > > > when I browse to http:///nagios I get a 404 error > > with the default configuration I was being requested for the > > username/password but then getting the error > > "that the page I was looking for is not here" > > > > I have confirmed that the index.php is in the DirectoryIndex listing. > > but if I got to http:///nagios/main.php I get the default page > > if I browse to http:///nagios/side.php I get the side bar > although > > the information provided is incorrect displayed. > > > > I have an existing (working) instance of nagios on another server and > have > > tried to copy the monitoring config to this new machine > > but the page is unable to display or process anything. > > > > /usr/sbin/httpd -t reports ok. > > > > I have tried replacing the default foreman config with a default non > > virtual host config again with no joy. > > > > This issue has been identified before as a problem with > > after-foreman-install-my-icinga-interface-is-not-working > > < > http://serverfault.com/questions/630985/after-foreman-install-my-icinga-interface-is-not-working> > > > in this case the user disabled foreman in order to icinga working. > > > > Can anyone identify what I am doing incorrectly. > > I noticed you found a solution and upvoted your response on serverfault > - http://serverfault.com/questions/724276/changing-the-default-foreman-uri > > Use foreman-installer --foreman-foreman-url, or specify the URL in > the interactive installer (-i, --interactive). > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > -- > Daniel Lobato Garcia > > @eLobatoss > blog.daniellobato.me > daniellobato.me > > GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30 > Keybase: https://keybase.io/elobato >

Further research suggests using a nagios puppet module can be used to
build nagios.

Failing that hosting nagios and foreman/puppet on the same server may not
be the best option.
I think I will create a new VM and host nagios on that.

··· On Friday, 25 September 2015 23:29:24 UTC+10, Michael Hurn wrote: > > Have you considered installing Nagios to a virtual host? > > On Thursday, September 24, 2015 at 12:53:46 AM UTC-4, barry wrote: >> >> I have a new RHEL 7.1 vm and would like to co host foreman and nagios >> under the same httpd server. >> >> I have installed foreman on the server with the URI of >> http(s):///foreman and installed nagios on the same machine >> using the provided Redhat RPMs/Yum. >> >> Foreman installs as a virtual host but I cannot seem to be able to get >> nagios working. Each time I get a 404 error. >> >> when I browse to http:///nagios I get a 404 error >> with the default configuration I was being requested for the >> username/password but then getting the error >> "that the page I was looking for is not here" >> >> I have confirmed that the index.php is in the DirectoryIndex listing. >> but if I got to http:///nagios/main.php I get the default page >> if I browse to http:///nagios/side.php I get the side bar >> although the information provided is incorrect displayed. >> >> I have an existing (working) instance of nagios on another server and >> have tried to copy the monitoring config to this new machine >> but the page is unable to display or process anything. >> >> /usr/sbin/httpd -t reports ok. >> >> I have tried replacing the default foreman config with a default non >> virtual host config again with no joy. >> >> This issue has been identified before as a problem with >> after-foreman-install-my-icinga-interface-is-not-working >> >> in this case the user disabled foreman in order to icinga working. >> >> Can anyone identify what I am doing incorrectly. >> >