Nagios XI Webconsole is blank

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Webconsole is blank

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
lgaddam
Posts: 116
Joined: Wed Aug 28, 2019 1:01 am

Re: Nagios XI Webconsole is blank

Post by lgaddam »

I have done repair script once again.
Now those errors are gone. mysqld.log looks good now.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Webconsole is blank

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
lgaddam
Posts: 116
Joined: Wed Aug 28, 2019 1:01 am

Re: Nagios XI Webconsole is blank

Post by lgaddam »

Only mysqld.log errors got fixed. Still the blank webconsole persists.
Not able to download profile.zip because of blank console.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Webconsole is blank

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
lgaddam
Posts: 116
Joined: Wed Aug 28, 2019 1:01 am

Re: Nagios XI Webconsole is blank

Post 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]#
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Webconsole is blank

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
lgaddam
Posts: 116
Joined: Wed Aug 28, 2019 1:01 am

Re: Nagios XI Webconsole is blank

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Webconsole is blank

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked