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'
Install error on CentOS7
Re: Install error on CentOS7
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!
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!
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Install error on CentOS7
Hello @mccrakem,
Thanks for posting the error messages.
Also, please post the output of the following commands:?
Thanks for posting the error messages.
The main issue is that for some reason Apache is not running on the server and it's failing to make necessary HTTP calls..httpd: no process 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?HTTP request sent, awaiting response... 404 Not Found
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Install error on CentOS7
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.
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.
Re: Install error on CentOS7
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 ~]#
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 ~]#
Re: Install error on CentOS7
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
[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
Re: Install error on CentOS7
Looks like you may have some repository issues, does this system have internet access?
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:
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.
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
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
Please attach the full /tmp/nagiosxi/install.log or /tmp/install-xi.log so that we can see all information from the beginning.
Re: Install error on CentOS7
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Install error on CentOS7
Great!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
Locking