Page 2 of 3

Re: Nagios XI reorts are not coming or very very slow

Posted: Tue Jan 07, 2020 11:38 pm
by biswajit.banerjee
Thanks for the Update .
Let me setup DEV environment and test the proposed Solution .

Let me come back in few days . Please keep it Open

Re: Nagios XI reorts are not coming or very very slow

Posted: Wed Jan 08, 2020 10:34 am
by tgriep
Will do.

Re: Nagios XI reorts are not coming or very very slow

Posted: Fri Feb 21, 2020 6:29 am
by biswajit.banerjee
We deployed the core as per the process given (below) but it failed
tgriep wrote:FYI, the following are the instructions to upgrade your system with applications and scripts that have not been rigorously tested.
Make a full backup of the Nagios XI server beforehand so you can go back if needed.

First you need to upgrade Nagios core to an development version with the speed enhancements. Run the following as root.

Code: Select all

cd /tmp
https://github.com/NagiosEnterprises/nagioscore/archive/cgi-avail-filtering.zip
unzip cgi-avail-filtering.zip
cd nagioscore-cgi-avail-filtering
./configure --with-command-group=nagcmd
make nagios cgis
make install
Next, you need to upgrade some PHP scripts for Nagios XI.
The 3 php scripts are attached to this post in a zip file.
Extract the PHP files and over write the copies on the Nagios XI server in the following locations.

Code: Select all

/usr/local/nagiosxi/html/reports/sla.php
/usr/local/nagiosxi/html/reports/availability.php
/usr/local/nagiosxi/html/includes/utils-reports.inc.php
Run the following as root to restart the processes.

Code: Select all

service nagios restart
service httpd restart
Wait a few minutes for the processes to run and then run the reports and see if it helps.
It Failed with make install
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images/logos; done
for file in includes/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes; done
/usr/bin/install -c -m 664 -o nagios -g nagios angularjs/angular-1.3.9/angular.min.js /usr/local/nagios/share/angularjs/angular-1.3.9
/usr/bin/install: cannot stat ‘angularjs/angular-1.3.9/angular.min.js’: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/tmp/nagioscore-cgi-avail-filtering/html'
make: *** [install] Error 2

Re: Nagios XI reorts are not coming or very very slow

Posted: Fri Feb 21, 2020 10:07 am
by tgriep
Can you provide all of the output when you ran the make install so we can see the full log data?

If you go to the html/angular folder do you see the angular-1.3.9.zip file?
During the install, the zip file should be extracted and then the install should install it and if the zip file did not get extracted, it would generate that message.

Re: Nagios XI reorts are not coming or very very slow

Posted: Mon Feb 24, 2020 5:39 am
by biswajit.banerjee
Hi
I was able to solve the issue via unzipping the file . You need to inform the developers that packaging is broken at many places .
Let me check now whether the reports slowness issue is sorted out and come back .

Thanks

Re: Nagios XI reorts are not coming or very very slow

Posted: Mon Feb 24, 2020 8:33 am
by biswajit.banerjee
we deployed the suggested patch , But there is no improvement in fetching reports

Can you please suggest the way ahead .

Re: Nagios XI reorts are not coming or very very slow

Posted: Mon Feb 24, 2020 10:13 am
by tgriep
Running reports are very I/O intensive. To get the reports to run faster, see about moving the server to a faster disk drive subsystem.
The profile I looked at shows the server is running LifeKeeper. See if there is any performance enhancements that can be done to it.

Try increasing the PHP limits to a higher value.

Code: Select all

Edit the /etc/php.ini file and change the following from
max_execution_time = 120
max_input_time = 120
max_input_vars = 10000
memory_limit = 1024M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
to

Code: Select all

max_execution_time = 1200
max_input_time = 1200
max_input_vars = 100000
memory_limit = 2048M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
Save the change and restart Apache

Code: Select all

systemctl restart httpd

Re: Nagios XI reorts are not coming or very very slow

Posted: Mon Feb 24, 2020 11:20 am
by biswajit.banerjee
I/O Should not be issue we have SSD on AWS Platform

Done the changes but not able to get 24 hour report for all host .

Please see what can be be done . It has become a major issue now .
Please support

Re: Nagios XI reorts are not coming or very very slow

Posted: Mon Feb 24, 2020 5:39 pm
by tgriep
So far, you have gotten all of the patches and fixes that help out the performance of the report. We need to dig further.

Open a root shell on the server and run the top command.

Go to the Reports menu and look at which application is using the highest utilization and note the percent wait time.

Let it run for a bit, and note the Wait again and post it here.

Go to page 7 of this document and disable the reports from auto running on load.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Nagios XI reorts are not coming or very very slow

Posted: Tue Feb 25, 2020 5:58 am
by biswajit.banerjee
After Running a 24 Hours Availability report for all host the Top Output is
top.PNG
Auto display of Report is disabled .

Please let us know how to proceed further .

Thanks