Page 2 of 3

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 2:56 pm
by HarshilNarielwala
I followed your steps. It is done I believe, but I can see much error. COuld you please confirm if Nagios installed successfully. I am attaching whole steps and the error which I got while installing.

Thanks

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 2:57 pm
by HarshilNarielwala
Attaching

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 3:09 pm
by scottwilkerson

Code: Select all

Cleaning repos: State_of_Tennessee_Cisco_Tetration_RHEL7_tetration_rhel7 State_of_Tennessee_Sophos_RHEL7_sophos_rhel7 State_of_Tennessee_Zabbix_3_4_REHL_7_zabbix_3_4_rhel7_x86_64
              : State_of_Tennessee_epel_7Server_x86_64_x86_64 rhel-7-server-optional-rpms rhel-7-server-rpms rhel-7-server-satellite-tools-6.3-puppet4-rpms rhel-7-server-satellite-tools-6.3-rpms
It did not install successfully, you have a bunch of conflicting packages and repositories that contain both version 6 and version 7 packages.

I need to suggest you start from a clean minimal install server that only has the optional channel added.

This mean NO added repositories such as

Code: Select all

State_of_Tennessee_Cisco_Tetration_RHEL7_tetration_rhel7 State_of_Tennessee_Sophos_RHEL7_sophos_rhel7 State_of_Tennessee_Zabbix_3_4_REHL_7_zabbix_3_4_rhel7_x86_64

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 3:11 pm
by scottwilkerson
Also, you downloaded the nagiosxi-5.5.3-1.el6.x86_64.tar.gz download but you have a RHEL 7 server, you would need to use nagiosxi-5.5.3-1.el7.x86_64.tar.gz from https://repo.nagios.com/?repo=offline

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 3:39 pm
by HarshilNarielwala
I installed Nagios on another new server. Please see attach whole steps with new Nagios.

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 4:06 pm
by scottwilkerson
This is a lot better. However on page 1 of this document it states you need to have some packages that are found in the RHEL optional channel
https://assets.nagios.com/downloads/nag ... onment.pdf

You either need to add the optional channel, or add these packages manually as we cannot include them in the package for licensing reasons.

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 4:25 pm
by HarshilNarielwala
I did following changes in below file as follows:

vi /etc/yum/pluginconf.d/search-disabled-repos.conf
notify_only=0

I got the result as Complete and Enabled. Attaching the whole steps. Please let me know how can we check it got fully installed. I am using below url it is not working:

https://localhost/nagiosxi

I am getting an error as Site can't be reached.

Thanks

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 4:38 pm
by scottwilkerson
This looks installed.

Your curl is missing the final / so is just showing that it needs to redirect to http://localhost/nagiosxi/

Code: Select all

curl http://localhost/nagiosxi/

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 7:45 pm
by HarshilNarielwala
I tried your curl command with HTTP and with that I got some session timed out an error. With https but I got some SSL certification error with https. DO we have to open any specific port and Do I have to install any certificate?



[root@ah57sdclw00065 ~]# curl http://localhost/nagiosxi/
Your session has timed out.[root@ah57sdclw00065 ~]# curl https://localhost/nagiosxi/
curl: (60) Issuer certificate is invalid.
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
[root@ah57sdclw00065 ~]#


Thanks

Re: Nagios X1 installation error on Offline Server

Posted: Thu Sep 20, 2018 7:19 am
by scottwilkerson
I would just ignore the curl command for right now because you aren't going to have a certificate for hostname localhost

Simply get the IP address from the machine and open it in a web browser

Code: Select all

ip addr