Page 2 of 3

Re: New offline intsallation of Nagios HELP

Posted: Thu Jan 05, 2017 1:24 pm
by techcrunch
That is not my question, sorry. Please review the error on the picture from the log file requested.

Re: New offline intsallation of Nagios HELP

Posted: Thu Jan 05, 2017 4:59 pm
by rkennedy
rkennedy wrote:
/home/e344951/Desktop/nagiosxi/
Please attempt to install on a clean, minimal machine, without a desktop GUI using RHEL6/7 or CentOS6/7.
Assuming your new installation is without a GUI, please post the full install.log for us to view.

Nagios Installation Error

Posted: Tue Jan 10, 2017 3:25 pm
by techcrunch
Moderator Edit: This reply has been merged into this topic from another. In the future, please keep all replies in this thread.

I've attached my install log as requested. Thanks
install.docx

Re: New offline intsallation of Nagios HELP

Posted: Wed Jan 11, 2017 9:44 am
by techcrunch
here is the new error I am experiencing. full install.log
install.docx

Re: New offline intsallation of Nagios HELP

Posted: Wed Jan 11, 2017 1:23 pm
by dwhitfield
Please run yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units and then reattempt the install.

If you run into issues with the yum install, please post the output in a code block using code tags.

Re: New offline intsallation of Nagios HELP

Posted: Wed Jan 11, 2017 2:06 pm
by techcrunch
This is an offline installation. Do you have those rpm's? or what other steps should I take?

Re: New offline intsallation of Nagios HELP

Posted: Wed Jan 11, 2017 2:36 pm
by rkennedy
You still need access to repositories for the install as this is something we can't just bundle in. One additional part on top of what @dwhitfield mentioned is here -

Code: Select all

checking for libmcrypt-config... no
checking for libmcrypt - version >= 2.4.11... no
*** Could not run libmcrypt test program, checking why...
What is the output of yum install -y 'libmcrypt libmcrypt-devel'

Re: New offline intsallation of Nagios HELP

Posted: Wed Jan 11, 2017 2:41 pm
by dwhitfield
On top of what @rkennendy said, as for the DVD repos, https://access.redhat.com/solutions/1355683 should be of help.

For a repo that will get updated, https://wiki.centos.org/HowTos/CreateLocalMirror should help (although that document is for CentOS 5)

Re: New offline intsallation of Nagios HELP

Posted: Mon Jan 16, 2017 3:18 pm
by techcrunch
I finally got it to install. Now I am getting the following error. Please assist.

FORBIDDEN
you don't have permission to access /nagiosxi/install.php on this server.

Re: New offline intsallation of Nagios HELP

Posted: Mon Jan 16, 2017 3:31 pm
by dwhitfield
What does your /etc/httpd/conf.d/nagiosxi.conf look like?

Below is mine for comparison

Code: Select all

cat  /etc/httpd/conf.d/nagiosxi.conf
<Directory "/usr/local/nagiosxi/html">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
#   AuthName "Nagios XI"
#   AuthType Basic
#   AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
#   Require valid-user
</Directory>

Alias /nagiosxi "/usr/local/nagiosxi/html"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
Also, what happens if you get rid of the install.php and just go to /nagiosxi/ ? You shouldn't need install.php for a while. I'm not suggesting we shouldn't fix it, just trying to get you up and running.