Page 1 of 2
Can not generate PDFs from reports
Posted: Wed Feb 24, 2021 3:39 pm
by mrjsokol
Good evening,
We are able to export our reports in all different types except PDF. After reviewing configuration, I have found the following errors in console and terminal. If needed, I can provide a profile.
Note: The reported not found files exist on server and all ip and ports were removed from screenshots.
See attached pictures for errors found.
Re: Can not generate PDFs from reports
Posted: Wed Feb 24, 2021 4:51 pm
by dchurch
The first screenshot about the `.map` file missing is a red herring; .map files are for debugging minified scripts using the browser and are not needed or referenced unless you're debugging.
Really the only error that's concerning is the 404 error for the statehistory.php page. That page is supposed to exist, and be an actual PHP file, and the fact it's not makes me think something is messed up with your installation.
What version of Nagios XI are you running?
If you PM me a system profile, I can diagnose further.
Re: Can not generate PDFs from reports
Posted: Thu Feb 25, 2021 7:35 am
by mrjsokol
Good morning,
We are running Nagiox XI 5.8.1. I will pm you my profile this morning.
Re: Can not generate PDFs from reports
Posted: Fri Feb 26, 2021 10:47 am
by dchurch
With the fourth screenshot, the one that says "Not Found" what does the URL bar say?
If it's surrounded by the Nagios XI border, open it in Firefox, right click on the error and say "This Frame => Show Only This Frame."
I can't seem to find this request in the logs in your profile, so I'm thinking that the request somehow redirects to a different server.
Re: Can not generate PDFs from reports
Posted: Mon Mar 01, 2021 10:47 am
by mrjsokol
Good morning,
The ip and port is the same but the following is after the base url:
/nagiosxi/reports/availability.php?reportperiod=last24hours&startdate=&enddate=&host=&service=&hostgroup=&servicegroup=&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&mode=getreport&mode=pdf
Re: Can not generate PDFs from reports
Posted: Mon Mar 01, 2021 3:29 pm
by dchurch
What's the output from the following command?
Code: Select all
ls -la /usr/local/nagiosxi/html/reports
Re: Can not generate PDFs from reports
Posted: Mon Mar 01, 2021 8:25 pm
by mrjsokol
ls -la /usr/local/nagiosxi/html/reports
total 1572
drwxr-xr-x 2 nagios nagios 4096 Feb 25 2020 .
drwxr-xr-x 19 root nagios 4096 Feb 16 14:36 ..
-rwxr-xr-- 1 nagios nagios 415993 Mar 1 17:57 alertheatmap.php
-rwxr-xr-- 1 nagios nagios 136722 Mar 1 17:57 availability.php
-rwxr-xr-- 1 nagios nagios 31146 Mar 1 17:57 eventlog.php
-rw-r--r-- 1 nagios nagios 34897 Mar 1 17:57 execsummary.php
-rwxr-xr-- 1 nagios nagios 36831 Mar 1 17:57 histogram.php
-rwxr-xr-- 1 nagios nagios 2020 Mar 1 17:57 index.php
-rwxr-xr-- 1 nagios nagios 8150 Mar 1 17:57 myreports.php
-rwxr-xr-- 1 nagios nagios 3063 Mar 1 17:57 nagiosxireports.php
-rwxr-xr-- 1 nagios nagios 43889 Mar 1 17:57 notifications.php
-rw-r--r-- 1 nagios nagios 759985 Mar 1 17:57 sla.php
-rwxr-xr-- 1 nagios nagios 62763 Mar 1 17:57 statehistory.php
-rwxr-xr-- 1 nagios nagios 46677 Mar 1 17:57 topalertproducers.php
Re: Can not generate PDFs from reports
Posted: Tue Mar 02, 2021 10:12 am
by dchurch
I'm confused - why are the time stamps on the files yesterday, March 1? Did a complete reinstall of Nagios XI happen in the intervening time between when you first had the error and now?
Re: Can not generate PDFs from reports
Posted: Tue Mar 02, 2021 4:15 pm
by mrjsokol
Good evening,
We did not do a re-install but an upgrade to the latest version as its our policy to upgrade our installation as soon as possible to mitigate any security issues found by the Nagios team and disclosed in the change log of a new update. The error with the new installation is the same error we were receiving prior and files present are the same. If needed, I can provide another profile but assure you that only the upgrade has changed with the installation from 5.8.1 to the latest 5.8.2
Re: Can not generate PDFs from reports
Posted: Wed Mar 03, 2021 10:58 am
by dchurch
Are you using a non-standard port for your Nagios XI web server?
Do you have SSL configured for the Nagios XI web server, and is that what you use to connect to Nagios XI?