Nagios XI 5.5.1 - Reports issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Nagios XI 5.5.1 - Reports issue

Post 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?
You do not have the required permissions to view the files attached to this post.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Nagios XI 5.5.1 - Reports issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI 5.5.1 - Reports issue

Post 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
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Nagios XI 5.5.1 - Reports issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI 5.5.1 - Reports issue

Post by jacek »

After creating the file, it updated (bug?), attached it (removed sensitive data).
You do not have the required permissions to view the files attached to this post.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Nagios XI 5.5.1 - Reports issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI 5.5.1 - Reports issue

Post by jacek »

Timezone in php.ini, Nagios XI, and Centos is saying UTC.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Nagios XI 5.5.1 - Reports issue

Post by jomann »

What version is your wkhtmltopdf? Can you run:

Code: Select all

wkhtmltopdf --version
Can you also copy into here the wkhtmltox.log that should be in /usr/local/nagiosxi/var you can remove anything that is sensitive.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI 5.5.1 - Reports issue

Post by jacek »

wkhtmltopdf 0.12.1.3 (with patched qt)

The log file doesn't exist...
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Nagios XI 5.5.1 - Reports issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked