session timed out in schedule reports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kn00567386
Posts: 28
Joined: Tue May 07, 2019 12:17 am

session timed out in schedule reports

Post by kn00567386 »

I am scheduling metric CPU and memory report in PDF. But i do receive PDF file with no data in it. I only see report name and 'session timed out' string in PDF file. I have optimized php settings but there is no success. I have uploaded httpd and wkhtmltox logs for reference.please help.

There is another issue when i try to download capacity planning report for all hosts, nagios portal does not responds i observed CPU goes 100% for wkhtmltox process and dont finish till we kill it.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: session timed out in schedule reports

Post by benjaminsmith »

Hello @kn00567386,

To clarify, did you follow our directions below to optimize the PHP settings?

https://support.nagios.com/kb/article/n ... e-611.html

Can you send us your system profile to help troubleshoot? You may be running out disk space or system resources. Thanks.

To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kn00567386
Posts: 28
Joined: Tue May 07, 2019 12:17 am

Re: session timed out in schedule reports

Post by kn00567386 »

I have messaged you profile.
yes I have already did that but no success after it.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: session timed out in schedule reports

Post by benjaminsmith »

Hi,

Got your message and while looking over the profile, I noticed these entries in the Apache logs.
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 1430 in Unknown on line 0
I would remove the # symbol ( see: https://en.wikipedia.org/wiki/INI_file#Comments).
PHP Fatal error: require_once(): Failed opening required '/usr/local/nagiosxi/html/includes/../config.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/common.inc.php on line 6, referer: https://10.65.238.201/nagiosxi/includes ... mory+Usage
Let's check the permissionson the config.inc.php file (attach the file).

Code: Select all

 ls -lR /usr/local/nagiosxi/ > /tmp/support.txt
Lastly, can you upload or PM the empty pdf report and is this affecting all of the reports in XI. What happens when you simply download the pD of the report without scheduling it. Thanks
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kn00567386
Posts: 28
Joined: Tue May 07, 2019 12:17 am

Re: session timed out in schedule reports

Post by kn00567386 »

@BenjaminSmith,

Please find attached empty report and file permission info.

There is no option to download reports in metrics. I am able to download capacity planing report in pdf. There is no issue.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: session timed out in schedule reports

Post by benjaminsmith »

Hello,

It's interesting that this is only a problem for the metrics component. I would like to verify that the Program URl settings are correct. Can you verify that you have the correct IP address/url in Admin > System Config > System Settings > General Program Settings. Are you using http or https by default?
url-settings.png
Next, run the following tail command and force it send the schedule report and post the log.

Code: Select all

tail -Fn0 /var/log/httpd/error_log /var/log/httpd/ssl_error_log > /tmp/report.txt
You can send the schedule report from My Scheduled Reports.
scheduled-report.png
Are you using any kind of network proxy? Thanks.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: session timed out in schedule reports

Post by benjaminsmith »

Hi,

One more thing. I noticed that you are running an older version of Nagios XI, and there was an issue with jquery compatibility (since been resolved). Please try opening the: /usr/local/nagiosxi/html/config.inc.php file with a text editor and add the following config option:

Code: Select all

$cfg['old_browser_compat'] = 1;
and then test the report again. You'll see it in the comments at the end of the file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kn00567386
Posts: 28
Joined: Tue May 07, 2019 12:17 am

Re: session timed out in schedule reports

Post by kn00567386 »

Hi Benjamin,

yes IP is correct and we are using https by default, please refer attached screenshot.

I had run report after making changes in config.inc.php, but no success and i have attached logs too.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: session timed out in schedule reports

Post by benjaminsmith »

Hello,

Thanks for your patience on this. It's a bug and this has been corrected in the latest version; we were able to repeat the issue on 5.5.11. Please upgrade to the latest version to resolve the error.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kn00567386
Posts: 28
Joined: Tue May 07, 2019 12:17 am

Re: session timed out in schedule reports

Post by kn00567386 »

Hi benjamin,

I am facing same issue on 5.6.6 version also.
Locked