Page 1 of 6

Nagios XI problems

Posted: Thu Sep 01, 2011 10:22 am
by SDohmen
Hello,

Yesterday i was reading that the new Nagios XI was released and since my other install (still) doesn't work, i decided to give this one a spin.

I installed CentOS 6 on a clean Xen VM. During install i selected the minimal install to be sure this wont cause problems as the installer grabs everything it needs anyway.

So i downloaded the installer and ran it. During the install i didn't see any important errors or anything. Then i created the nagiosadmin account and logged in. After resetting the security credentials to the same as the nagios admin i tried to add a hostgroup. However when i did the apply configuration i got greeted by an error:

Code: Select all

        Command submitted for processing...
        Waiting for configuration verification....
        Backend login to the Core Config Manager failed.
So to be on the safe side i decided to reset the credentials again but the error stayed. When i try to view the snapshot of this error there is no snapshot created. After checking the wiki i thought i might have the permissions wrong and i have to reset them. So i did that but still the error was there.

Lastly i decided to check in the tools section to see what error i would get when i forced the writing of the files. The first 3 buttons worked just fine but when i tried to restart nagios i got the error that the command file couldn't be found. When i looked in the shell the file wasn't there.

What i am wondering now is if this is a known issue or i have some serious bad luck installing nagios xi in a production environment.

This is a double post with a post in the general forum. I am sorry for this but we just got the subcription for reading/posting here.

Re: Nagios XI problems

Posted: Thu Sep 01, 2011 3:12 pm
by mguthrie
Are you using proxy, NAT, or SSL on your system? Can you think of any reason why a wget call to localhost might fail?

Re: Nagios XI problems

Posted: Fri Sep 02, 2011 2:43 am
by SDohmen
I dont have any proxy/nat or ssl enabled on that system. Since i am not that familiar with centos (or most linux distro's for that matter), i cant really comment on the wget issue. To be sure i checked if wget was installed ( i tend to forgot those things) and it was since i downloaded the installer with it already.

[EDIT]
Just to be on the safe side i decided to make another vm with CentOS 5.6 to see if that solved the problem. Everything went fine same as the other install but as soon as i wanted to apply the configuration, i got the same error as before.

Re: Nagios XI problems

Posted: Fri Sep 02, 2011 10:22 am
by lmiltchev
SDohmen, try to add a hostgroup again and to apply the configuration. After this, run in terminal the following command and post the output of it:

Code: Select all

# tail /usr/local/nagios/var/nagios.log

Re: Nagios XI problems

Posted: Sun Sep 04, 2011 4:37 am
by SDohmen
As requested here is the output from the tail command:

Code: Select all

[1315096042] Auto-save of retention data completed successfully.
[1315099642] Auto-save of retention data completed successfully.
[1315103242] Auto-save of retention data completed successfully.
[1315106842] Auto-save of retention data completed successfully.
[1315110442] Auto-save of retention data completed successfully.
[1315114042] Auto-save of retention data completed successfully.
[1315117642] Auto-save of retention data completed successfully.
[1315121242] Auto-save of retention data completed successfully.
[1315124842] Auto-save of retention data completed successfully.
[1315128442] Auto-save of retention data completed successfully.
For some reason i doubt this is the code you where hoping for. What i also noticed while doing this is that there is a configuration snapshot but it has no useful (errors) in it. Also the time on the snapshots is wrong, all time settings are correct otherwise. The snapshot one is 1 hour behind. On the command line the time is correct aswell.

Re: Nagios XI problems

Posted: Tue Sep 06, 2011 10:18 am
by mguthrie
Can you run:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh &> output.txt
and post the output of the text file?

Re: Nagios XI problems

Posted: Fri Sep 09, 2011 1:08 am
by SDohmen
The output is:

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh: line 17: ./import_nagiosql.sh: No such file or directory

I tried it on both installs.

Re: Nagios XI problems

Posted: Fri Sep 09, 2011 9:31 am
by mguthrie
Oops, my fault.

Try:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> output.txt
And send us that output.

Re: Nagios XI problems

Posted: Sun Sep 11, 2011 3:07 am
by SDohmen
Here we go:

Code: Select all

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=*' -O nagiosql.login--2011-09-11 10:03:14--  http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/index.php [following]
--2011-09-11 10:03:14--  http://localhost/nagiosql/index.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: ânagiosql.loginâ

     0K .....                                                 100%  188M=0s

2011-09-11 10:03:14 (188 MB/s) - ânagiosql.loginâ

NAGIOSQL LOGIN FAILED!
For ovbious reasons i removed the password entry. To be sure i checked if it was the correct one and it was. What i do wonder though is if symbols are allowed in the password (!@#$%^&*()), since my password has 2 of them in there ( * and & ).

Re: Nagios XI problems

Posted: Mon Sep 12, 2011 9:38 am
by agriffin
Special characters should be allowed, but there have been bugs from time to time related to them. Are you able to login manually with that password? Does changing the password to all alphanumeric characters fix anything?

Also, I noticed in your output that a few characters did not display correctly. This may be related to your locale and system character encoding. What's the output when you run 'locale' on the terminal?