Page 2 of 2

Re: Nagios XI Webconsole is blank

Posted: Mon Jan 13, 2020 3:13 pm
by lmiltchev
Do i need to again run "repair_databases.sh" script to resolve this issue ?
Yes, run the "repair_databases.sh" script, and check the mysqld.log for errors again. If there are no errors, try restarting services to see if this is going to help:

Code: Select all

service nagios stop
service ndo2db restart
service postgresql restart
service nagios start
Check the status of the services:

Code: Select all

service nagios status
service ndo2db status
service postgresql status
Also, PM me your latest profile:

Admin > System Config > System Profile > Download Profile > profile.zip > Save File

Re: Nagios XI Webconsole is blank

Posted: Tue Jan 14, 2020 3:00 pm
by lgaddam
I have done repair script once again.
Now those errors are gone. mysqld.log looks good now.

Re: Nagios XI Webconsole is blank

Posted: Tue Jan 14, 2020 3:08 pm
by lmiltchev
Are you still seeing blank pages in the GUI or it is all working correctly? Is it safe to lock this thread? Thanks!

Re: Nagios XI Webconsole is blank

Posted: Thu Jan 16, 2020 1:16 am
by lgaddam
Only mysqld.log errors got fixed. Still the blank webconsole persists.
Not able to download profile.zip because of blank console.

Re: Nagios XI Webconsole is blank

Posted: Thu Jan 16, 2020 10:25 am
by lmiltchev
Let's try to get the profile from the command line. One of the files will be missing, but at least we can review the rest of the files.

1. Run the following command from the command line:

Code: Select all

/usr/local/nagiosxi/scripts/components/getprofile.sh 1234
2. Check to see if the "profile.zip" file was created in the "/usr/local/nagiosxi/var/components" directory:

Code: Select all

cd /usr/local/nagiosxi/var/components
ls -la
3. Use FileZilla or similar file transfer program to copy over the "profile.zip" file to your computer.

4. PM me the profile.zip file

Note: After this, you could remote the profile.zip that was created in the "/usr/local/nagiosxi/var/components" directory, along with the profile folder (which should be empty).

Code: Select all

cd /usr/local/nagiosxi/var/components
rm -rf profile profile.zip

Re: Nagios XI Webconsole is blank

Posted: Fri Jan 17, 2020 11:04 am
by lgaddam
HI,

I got below error while I try to run the provided command by you.

[root@glnagiosp02 etc]# /usr/local/nagiosxi/scripts/components/getprofile.sh 1234
-bash: /usr/local/nagiosxi/scripts/components/getprofile.sh: No such file or directory
[root@glnagiosp02 etc]#

Re: Nagios XI Webconsole is blank

Posted: Fri Jan 17, 2020 11:49 am
by lmiltchev
-bash: /usr/local/nagiosxi/scripts/components/getprofile.sh: No such file or directory
By bad - the profile creation was done differently in the old versions of XI, e.g. 5.4.3.

Let's try this:

Code: Select all

mkdir -p /usr/local/nagiosxi/var/components/profile
cd /usr/local/nagiosxi/html/includes/components/profile
./getprofile.sh
After running these commands, a profile.zip file should be created ("/usr/local/nagiosxi/var/components/profile.zip"). PM me the file when you get it.

Does the "/usr/local/nagiosxi/html/index.php" file exist on your system? Run the following commands and show the output:

Code: Select all

ls -lad /usr/local /usr/local/nagiosxi /usr/local/nagiosxi/html/
ls -la /usr/local/nagiosxi/html/index.php
Can you also run the following command, and show the output in code wraps?

Code: Select all

yum list installed | grep php

Re: Nagios XI Webconsole is blank

Posted: Thu Jan 23, 2020 2:43 am
by lgaddam
Hi,

Issue got resolved.
Issue is with permissions in /etc/group. It has been corrected as below.

Earlier:

nagios:x:57975:nagios:apache:snmptt
nagcmd:x:57976:nagios:apache:snmptt

After correction:

nagios:x:57975:nagios,apache,snmptt
nagcmd:x:57976:nagios,apache,snmptt

Then restart httpd:

service httpd restart


Issue resolved. Please close this.

Re: Nagios XI Webconsole is blank

Posted: Thu Jan 23, 2020 7:47 am
by scottwilkerson
lgaddam wrote:Hi,

Issue got resolved.
Issue is with permissions in /etc/group. It has been corrected as below.

Earlier:

nagios:x:57975:nagios:apache:snmptt
nagcmd:x:57976:nagios:apache:snmptt

After correction:

nagios:x:57975:nagios,apache,snmptt
nagcmd:x:57976:nagios,apache,snmptt

Then restart httpd:

service httpd restart


Issue resolved. Please close this.
Great!

Locking thread