Page 1 of 2
Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 7:49 am
by jacek
I run an automated weekly report, which sends via mail the results in a PDF.
The report runs this page:
/nagiosxi/?xiwindow=includes%2Fcomponents%2Fxicore%2Fstatus.php%3Fshow%3Dservices%26servicestatustypes%3D28
Opening it via the webpage gives me perfectly fine results, I attached how the PDF looks like.
Any thoughts?
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 12:14 pm
by jomann
There should be a log in /usr/local/nagiosxi/var that is called scheduledreporting.log that should show us the full link that it is using to generate these reports. Can you post the log or a snippet from the log which includes the URL. You can remove any portions that are sensitive.
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 12:49 pm
by jacek
I would like to post that file, but it doesn't exist in the location you provided...
But if I go to the scheduled report setting I can see the link:
https://xxx.yyy.com/nagiosxi/includes/c ... ustypes=28
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 12:52 pm
by jomann
Well that is odd, can you create it? Schedule a report and see if it updates.
Code: Select all
touch /usr/local/nagiosxi/var/scheduledreporting.log
chown apache:apache /usr/local/nagiosxi/var/scheduledreporting.log
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 1:11 pm
by jacek
After creating the file, it updated (bug?), attached it (removed sensitive data).
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 1:15 pm
by jomann
It looks like it is properly using the auth token. Can you verify that your timezones are properly set in php / mysql / server? This is the only other thing that I would think would cause the token not to work. You can do this by setting the timezone off by a hour in Admin > System Settings and then waiting 5 minutes and switching it back or if you don't want to mess up any incoming data, verify your PHP timezone in /etc/php.ini and find timezone in there. Also then restart your MySQL and your apache servers.
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 1:22 pm
by jacek
Timezone in php.ini, Nagios XI, and Centos is saying UTC.
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 2:54 pm
by jomann
What version is your wkhtmltopdf? Can you run:
Can you also copy into here the wkhtmltox.log that should be in /usr/local/nagiosxi/var you can remove anything that is sensitive.
Re: Nagios XI 5.5.1 - Reports issue
Posted: Mon Jul 16, 2018 3:32 pm
by jacek
wkhtmltopdf 0.12.1.3 (with patched qt)
The log file doesn't exist...
Re: Nagios XI 5.5.1 - Reports issue
Posted: Tue Jul 17, 2018 9:02 am
by jomann
Alright I can replicate this. I will have to add a bug report and it will get fixed in the next version. If it's a super simple fix I can probably give you a workaround but I won't know. If you check back in later in the week I can let you know.