Unable to generate PDF or JPG reports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to generate PDF or JPG reports

Post by tgriep »

Run this command and then try to generate the report.

Code: Select all

tail -f /var/log/httpd/error_log
Can you provide a screen shot of the System Settings?
Click on Admin > System Settings. Both the Program URL and the External URL must be correct for your system.
When a report is run, it will use those URL,s to generate the report and also the localhost settings in the /etc/hosts may break the reports it it isn't defined correctly.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcleodc
Posts: 59
Joined: Thu Jan 28, 2010 1:26 pm

Re: Unable to generate PDF or JPG reports

Post by mcleodc »

Here you go. Screenshot is also attached. The logs appeared as soon as i entered the command and no additional logs appeared when i tried to generate a PDF.

Last login: Tue Oct 13 08:48:11 2015 from kin5356.tegnet.co.uk
[root@kinnag ~]# tail -f /var/log/httpd/error_log
[Mon Oct 12 12:52:30 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:52:30 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:52:32 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:52:54 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:53:01 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:53:01 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:53:04 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:53:25 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:53:34 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240
[Mon Oct 12 12:53:34 2015] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_FUNCTION in /usr/local/nagiosxi/html/backend/includes/utils.inc.php on line 240

You have new mail in /var/spool/mail/root
[root@kinnag ~]#
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to generate PDF or JPG reports

Post by tgriep »

Try changing the program URL to the following and see if that resolves it for you.

Code: Select all

http://kinnag/nagiosxi/
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcleodc
Posts: 59
Joined: Thu Jan 28, 2010 1:26 pm

Re: Unable to generate PDF or JPG reports

Post by mcleodc »

I have changed the program URL but still have the same issue

Failed to create PDF
Verify that your Nagios XI server can connect to the URL:
http://kinnag/nagiosxi/reports/availabi ... t&export=1
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to generate PDF or JPG reports

Post by tgriep »

Try changing your /etc/hosts to the following and see if that helps.

Code: Select all

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
::1 localhost6.localdomain6 localhost6
192.168.136.25 kinnag kinnag.edrington.co.uk
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcleodc
Posts: 59
Joined: Thu Jan 28, 2010 1:26 pm

Re: Unable to generate PDF or JPG reports

Post by mcleodc »

192.168.136.25 is our mailserver IP should it be in there?

I did this instead

# that require network functionality will fail.
127.0.0.1 localhost
::1 localhost6.localdomain6 localhost6
192.168.136.25 edrington.co.uk
192.168.136.46 kinnag kinnag.tegnet.co.uk
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to generate PDF or JPG reports

Post by tgriep »

Did changing the host file fix the issue?
The IP address for your mail server shouldn't have caused the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcleodc
Posts: 59
Joined: Thu Jan 28, 2010 1:26 pm

Re: Unable to generate PDF or JPG reports

Post by mcleodc »

No afraid not
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to generate PDF or JPG reports

Post by tgriep »

You can change the Program URL to the systems IP address like below and see if that works. Make sure the IP address is correct.
http://192.168.136.46/nagiosxi/
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcleodc
Posts: 59
Joined: Thu Jan 28, 2010 1:26 pm

Re: Unable to generate PDF or JPG reports

Post by mcleodc »

HI,

Still the same error i'm afraid.

Failed to create PDF
Verify that your Nagios XI server can connect to the URL:
http://192.168.136.46/nagiosxi/reports/ ... t&export=1
Locked