NagiosXI Installation Error.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

NagiosXI Installation Error.

Post by yaanatech »

I am in install NagiosXI 2011r2.4-1 on a 6.2 image I freshly kick-started, I noticed in first install script, it was adding its own repo's to my repo list. After it completed and started to do a package dependency check, I got this error;

Code: Select all

--> Finished Dependency Resolution
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: php-mcrypt
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: scipy
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: perl(Mail::POP3Client)
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: perl(Net::SMTP::TLS)
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: php-mssql
Error: nagiosxi-deps conflicts with nrpe
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: perl-Net-SNMP
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: libmcrypt
Error: Package: nagiosxi-deps-2011r2.4-1.noarch (/nagiosxi-deps-2011r2.4-1.noarch)
           Requires: libmcrypt-devel
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
RESULT=1

===================
INSTALLATION ERROR!
===================
Should I be getting this after it has already added it's own repos? Is there a specific repo I need to get these dependencies? I tride to yum install the ones missing and the repos are not finding the packages.

Suggestions?

Cheers
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI Installation Error.

Post by scottwilkerson »

First some details, is this machine behind a proxy?

Also, could you attach the full install.log

Also, what OS, centOS or RHEL?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: NagiosXI Installation Error.

Post by yaanatech »

I resolved the packages. I had to enable epel, that reduced the package error to just 1. Then I enabled rpmforge, installed the missing package. Afterwards I hda to disable rpmforge and just use epel.

Now I have run into a new error on the E-importnagiosql script.

Code: Select all

./E-importnagiosql
httpd: no process killed
Starting httpd:                                            [  OK  ]
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/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2012-04-27 22:32:12--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3851 (3.8K) [text/plain]
Saving to: ânagiosql.loginâ

100%[====================================================================================================>] 3,851       --.-K/s   in 0s

2012-04-27 22:32:12 (358 MB/s) - ânagiosql.loginâ

NAGIOSQL LOGIN FAILED!
Which default password is it using?
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: NagiosXI Installation Error.

Post by yaanatech »

Password=n@gweb

/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2012-04-27 22:42:25-- http://localhost/nagiosql/index.php

Should I change this, I don't see it in xi-sys.cfg anywhere.
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: NagiosXI Installation Error.

Post by yaanatech »

I see the nagiosql user and validated the n@gweb is the correct password. Something else is causing the login to be invalid.

Would it be in the actual E- script?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI Installation Error.

Post by scottwilkerson »

This actually sounds like a file permissions problem.

Have you adjusted the umask from the defaults?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: NagiosXI Installation Error.

Post by yaanatech »

I have not, what should I set the permissions to? Which file(s) should I check?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI Installation Error.

Post by scottwilkerson »

I was just looking through the thread again, did the install run all the way through, or did you patch some different things together?

Why did you manually enable and disable epel and rpmforge? these should have been done by the fullinstall script.

Also, never got an answer from my first response about the proxy question.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: NagiosXI Installation Error.

Post by yaanatech »

This install did not run all the way through.

I had to juggle a few repos to get the right packages installed. Then I had to adjust some of the Apache SSL configuration, our production images are not fresh out the box installs. After I made that adjustment, which was just commenting out a couple SSL cert entries I didn't need, the script proceeded (apache started, it wasnt prior due to the SSL certs). I ran each install script one, one by one. I believe I have just 2 left, which is where I am stuck now with the nagiosql login being denied.

Cheers
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI Installation Error.

Post by scottwilkerson »

Now this makes more sense.

Unfortunately, installed this way really isn't supportable. With what you have told me, I would guess that the problem may be related to an Apache problem with nagiosql, but no way for me to know for sure...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked