Page 1 of 2

NagiosXI Installation Error.

Posted: Fri Apr 27, 2012 4:29 pm
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

Re: NagiosXI Installation Error.

Posted: Fri Apr 27, 2012 4:31 pm
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?

Re: NagiosXI Installation Error.

Posted: Fri Apr 27, 2012 5:36 pm
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?

Re: NagiosXI Installation Error.

Posted: Fri Apr 27, 2012 5:46 pm
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.

Re: NagiosXI Installation Error.

Posted: Fri Apr 27, 2012 6:11 pm
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?

Re: NagiosXI Installation Error.

Posted: Mon Apr 30, 2012 9:28 am
by scottwilkerson
This actually sounds like a file permissions problem.

Have you adjusted the umask from the defaults?

Re: NagiosXI Installation Error.

Posted: Mon Apr 30, 2012 11:37 am
by yaanatech
I have not, what should I set the permissions to? Which file(s) should I check?

Re: NagiosXI Installation Error.

Posted: Mon Apr 30, 2012 11:50 am
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.

Re: NagiosXI Installation Error.

Posted: Mon Apr 30, 2012 12:07 pm
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

Re: NagiosXI Installation Error.

Posted: Mon Apr 30, 2012 12:14 pm
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...