New offline intsallation of Nagios HELP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
techcrunch
Posts: 14
Joined: Thu Dec 15, 2016 11:10 am

Re: New offline intsallation of Nagios HELP

Post by techcrunch »

That is not my question, sorry. Please review the error on the picture from the log file requested.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: New offline intsallation of Nagios HELP

Post 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.
Former Nagios Employee
techcrunch
Posts: 14
Joined: Thu Dec 15, 2016 11:10 am

Nagios Installation Error

Post 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
You do not have the required permissions to view the files attached to this post.
techcrunch
Posts: 14
Joined: Thu Dec 15, 2016 11:10 am

Re: New offline intsallation of Nagios HELP

Post by techcrunch »

here is the new error I am experiencing. full install.log
install.docx
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: New offline intsallation of Nagios HELP

Post 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.
techcrunch
Posts: 14
Joined: Thu Dec 15, 2016 11:10 am

Re: New offline intsallation of Nagios HELP

Post by techcrunch »

This is an offline installation. Do you have those rpm's? or what other steps should I take?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: New offline intsallation of Nagios HELP

Post 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'
Former Nagios Employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: New offline intsallation of Nagios HELP

Post 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)
techcrunch
Posts: 14
Joined: Thu Dec 15, 2016 11:10 am

Re: New offline intsallation of Nagios HELP

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: New offline intsallation of Nagios HELP

Post 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.
Locked