getting error while installing NagiosXl on RHEL 7.4

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kgaurav
Posts: 1
Joined: Fri May 25, 2018 5:51 am

getting error while installing NagiosXl on RHEL 7.4

Post by kgaurav »

I am installing Nagios Xl on RHEL 7.4 box, but unfortunately getting the below error. Please help. (my server is on intranet.)

[root@ip-XX-XXX-X-XXX nagiosxi]# ./fullinstall
.
.
.
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2018-05-25 04:03:06-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.export.monitoring’

0K .......... .......... . 2.51M=0.008s

2018-05-25 04:03:07 (2.51 MB/s) - ‘nagiosql.export.monitoring’ saved [21958]

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 12 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Error: Unable to write to check_result_path ('/usr/local/nagios/var/spool/checkresults') - Permission denied

Total Warnings: 0
Total Errors: 1

***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
RET: 1
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /home/birarip/nagiosxi/nagiosxi/basedir/scripts
tar: Removing leading `/' from member names
/home/birarip/nagiosxi/nagiosxi/basedir/scripts
ls: cannot access /usr/local/nagiosxi/nom/checkpoints/nagioscore/*.gz: No such file or directory
NO NOM SNAPSHOT FOUND!
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'
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: getting error while installing NagiosXl on RHEL 7.4

Post by mcapra »

The root problem:

Code: Select all

Error: Unable to write to check_result_path ('/usr/local/nagios/var/spool/checkresults') - Permission denied
Does this machine have any special security hardening in place? That folder should be automatically created and correctly permission'd as part of the installation process.

Can you attach a copy of your install.log as well? You may need to make 1 or 2 more posts on the forums to be allowed to attach things to messages, but dumping it into a post with

Code: Select all

 blocks should be fine.
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: getting error while installing NagiosXl on RHEL 7.4

Post by scottwilkerson »

or selinux enabled?

Code: Select all

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