Page 1 of 1

Nagios XI web interface cannot be loaded.

Posted: Thu Mar 23, 2017 3:19 am
by reincarne
Hello,
I have a complicated issue which I have no idea how to solve.

Yesterday I tried to upgrade my nagios xi manually, after the upgrade the web interface did not start.
Few remarks before I continue:
1. https://xx.xx.xx.xx/nagiosxi/ --> doesn't start.
2. https://xx.xx.xx.xx/nagios/ --> started.
3 https://xx.xx.xx.xx/ --> started.

I tried to restore the backup and got different kind of errors. From what I checked in mysqld log I found that I had an issue with disk space - already solve. Restoring did not help.
more then this, I get this error NAGIOSQL LOGIN FAILED when tried to repair DB.

Please assist.

Re: Nagios XI web interface cannot be loaded.

Posted: Thu Mar 23, 2017 9:34 am
by avandemore
Please send your DB and apache logs.

Code: Select all

# tar czvf /tmp/xi.tar.gz /var/log/httpd/*error* /var/log/mariadb/mariadb.log /var/log/mysqld.log

Re: Nagios XI web interface cannot be loaded.

Posted: Thu Mar 23, 2017 9:46 am
by reincarne

Code: Select all

tar: Removing leading `/' from member names
tar: /var/log/httpd/*error*: Cannot stat: No such file or directory
tar: /var/log/mariadb/mariadb.log: Cannot stat: No such file or directory
tar: /var/log/mysqld.log: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

Re: Nagios XI web interface cannot be loaded.

Posted: Thu Mar 23, 2017 10:37 am
by avandemore
What is the output of:

Code: Select all

# id
# cat /etc/*release

Re: Nagios XI web interface cannot be loaded.

Posted: Thu Mar 23, 2017 10:46 am
by lmiltchev
What is the Nagios XI version that you tried upgrading from/to? Run the following commands and show the output:

Code: Select all

cat /etc/*release
df -h
df -i
service nagios stop
service ndo2db stop
service ndo2db start
service nagios start
service nagios status
service ndo2db status
Also, run:

Code: Select all

service mysqld restart
service mysqld status
tail /var/log/mysqld.log
or (if you are using mariadb):

Code: Select all

service mariadb restart
service mariadb status
tail /var/log/mariadb/mariadb.log
and show the output.

Re: Nagios XI web interface cannot be loaded.

Posted: Tue Apr 25, 2017 1:08 am
by reincarne
FYI the issue was with an old machine which had mysql dependency which we were not able to upgrade.
The issue resolved with re-installing Nagios on a new machine.

Re: Nagios XI web interface cannot be loaded.

Posted: Tue Apr 25, 2017 10:07 am
by cdienger
Thanks for the follow up! Are we good locking the thread or did you have any more related questions?