Install error on CentOS7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mccrakem
Posts: 129
Joined: Mon Jun 19, 2017 8:28 am

Install error on CentOS7

Post by mccrakem »

Hi
I have been trying to install Nagios onto CentOS7 but I have been running into 1 issue after another, but now I am stuck at the E-importnagiosql Script

Running './E-importnagiosql'...
httpd: no process found
Applying patches to Apache configs for Apache 2.4.x syntax...
Redirecting to /bin/systemctl start httpd.service
Sleeping...
NOTE: If prompted, enter the MySQL root password
NagiosQL database appears OK - continuing...
NDOUtils database appears OK - continuing...
Found config files to import - continuing...
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=XXXXXXXX' -O nagiosql.login--2019-07-31 11:07:11-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-07-31 11:07:11 ERROR 404: Not Found.

NAGIOSQL LOGIN FAILED!
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './E-importnagiosql'
mccrakem
Posts: 129
Joined: Mon Jun 19, 2017 8:28 am

Re: Install error on CentOS7

Post by mccrakem »

The Nagios Install Log

httpd: no process found
Applying patches to Apache configs for Apache 2.4.x syntax...
Redirecting to /bin/systemctl start httpd.service
Sleeping...
NOTE: If prompted, enter the MySQL root password
NagiosQL database appears OK - continuing...
NDOUtils database appears OK - continuing...
Found config files to import - continuing...
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2019-07-31 11:07:11-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-07-31 11:07:11 ERROR 404: Not Found.

NAGIOSQL LOGIN FAILED!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Install error on CentOS7

Post by benjaminsmith »

Hello @mccrakem,

Thanks for posting the error messages.
httpd: no process found
The main issue is that for some reason Apache is not running on the server and it's failing to make necessary HTTP calls..
HTTP request sent, awaiting response... 404 Not Found
Does your server have access to the internet and is using base repos? Can you post the entire installation log for us to review to help us diagnose this further?

Also, please post the output of the following commands:?

Code: Select all

getenforce
yum repolist all
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Install error on CentOS7

Post by cdienger »

Does /usr/local/nagiosxi/html/includes/components/ccm/ exist ? The CCM should be installed before this stage but may have been skipped during the other failed install attempts.

I would start start fresh with a clean OS install and make sure you're installing with the root account and umask of 022 and it should work following the steps in https://assets.nagios.com/downloads/nag ... -Linux.pdf.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mccrakem
Posts: 129
Joined: Mon Jun 19, 2017 8:28 am

Re: Install error on CentOS7

Post by mccrakem »

Sorry for the delay

here is the output from the two commands

[root@dwylbopngios02 ~]# getenforce
Disabled

[root@dwylbopngios02 ~]# yum repolist all
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Excluding 1 update due to versionlock (use "yum versionlock status" to show it)
repo id repo name status
!centos-7-extras-rpms-x86_64 CentOS Linux 7 x86_64 Extras enabled: 423
!centos-7-server-rpms-x86_64 CentOS Linux 7 x86_64 enabled: 13,629
!centos-7-updates-rpms-x86_64 CentOS Linux 7 x86_64 Updates enabled: 2,303
!epel-7-x86_64 Enterprise Linux 7 x86_64 EPEL enabled: 20,239
!hostingops-7 Hosting Ops Custom Repo - EL7 enabled: 2
!puppet-pc1 Puppet Open Source PC1 Repo enabled: 194
repolist: 36,790
[root@dwylbopngios02 ~]#
mccrakem
Posts: 129
Joined: Mon Jun 19, 2017 8:28 am

Re: Install error on CentOS7

Post by mccrakem »

looks like it exists

[root@dwylbopngios02 ccm]# pwd
/usr/local/nagiosxi/html/includes/components/ccm
[root@dwylbopngios02 ccm]# ll
total 120
-rw-r-----. 1 nagios nagios 10317 Jul 31 12:01 ajax.php
-rw-r-----. 1 nagios nagios 20065 Jul 31 12:01 ccm.inc.php
-rw-r----- 1 nagios nagios 22187 Jul 31 12:01 ccm-splash.inc.php
-rw-r-----. 1 nagios nagios 11858 Jul 31 12:01 CHANGES.txt
drwxr-x---. 2 nagios nagios 155 Jul 30 04:59 classes
-rw-r-----. 1 nagios nagios 5180 Jul 31 12:01 command_test.php
-rw-r-----. 1 nagios nagios 1618 Jul 31 12:01 config.inc.php
drwxr-x---. 2 nagios nagios 45 Jul 30 04:59 css
-rw-r-----. 1 nagios nagios 4130 Jul 31 12:01 download.php
drwxr-x---. 2 nagios nagios 276 Jul 30 09:15 images
drwxr-x---. 2 nagios nagios 4096 Jul 30 09:15 includes
-rw-r-----. 1 nagios nagios 3848 Jul 31 12:01 index.php
drwxr-x---. 2 nagios nagios 69 Jul 30 04:59 javascript
-rw-r-----. 1 nagios nagios 4128 Jul 31 12:01 LICENSE.txt
drwxr-x---. 2 nagios nagios 4096 Jul 30 04:59 page_templates
-rw-r-----. 1 nagios nagios 4577 Jul 31 12:01 sanity.sh
drwxr-x---. 3 nagios nagios 19 Jul 30 04:59 templates
-rw-r-----. 1 nagios nagios 1871 Jul 31 12:01 xi-index.php
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Install error on CentOS7

Post by ssax »

Looks like you may have some repository issues, does this system have internet access?

Code: Select all

!centos-7-extras-rpms-x86_64 CentOS Linux 7 x86_64 Extras enabled: 423
!centos-7-server-rpms-x86_64 CentOS Linux 7 x86_64 enabled: 13,629
!centos-7-updates-rpms-x86_64 CentOS Linux 7 x86_64 Updates enabled: 2,303
!epel-7-x86_64 Enterprise Linux 7 x86_64 EPEL enabled: 20,239
!hostingops-7 Hosting Ops Custom Repo - EL7 enabled: 2
!puppet-pc1 Puppet Open Source PC1 Repo enabled: 194
If not, follow the offline method detailed here:

https://assets.nagios.com/downloads/nag ... onment.pdf


Try running these commands and send us the full output:

Code: Select all

yum clean all
yum repolist all
Then try it again.

Please attach the full /tmp/nagiosxi/install.log or /tmp/install-xi.log so that we can see all information from the beginning.
mccrakem
Posts: 129
Joined: Mon Jun 19, 2017 8:28 am

Re: Install error on CentOS7

Post by mccrakem »

Hi
I have test an install on a clean OS, all previous Operating Systems had been patched and security hardened and puppet was install I think puppet was trying to install directly from the build of the OS and that is where I was running into issues

So my next test is to install on a another Clean OS and get the nagios Software working and upgraded and then see about installing puppet and getting the server security hardened

This request can be closed

Thanks for all you help on this it really is appreciated
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Install error on CentOS7

Post by scottwilkerson »

mccrakem wrote:Hi
I have test an install on a clean OS, all previous Operating Systems had been patched and security hardened and puppet was install I think puppet was trying to install directly from the build of the OS and that is where I was running into issues

So my next test is to install on a another Clean OS and get the nagios Software working and upgraded and then see about installing puppet and getting the server security hardened

This request can be closed

Thanks for all you help on this it really is appreciated
Thanks
Great!

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked