Page 2 of 4
Re: Unable to generate PDF or JPG reports
Posted: Tue Oct 13, 2015 10:07 am
by tgriep
Run this command and then try to generate the report.
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.
Re: Unable to generate PDF or JPG reports
Posted: Tue Oct 13, 2015 10:17 am
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 ~]#
Re: Unable to generate PDF or JPG reports
Posted: Tue Oct 13, 2015 11:58 am
by tgriep
Try changing the program URL to the following and see if that resolves it for you.
Re: Unable to generate PDF or JPG reports
Posted: Wed Oct 14, 2015 4:24 am
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
Re: Unable to generate PDF or JPG reports
Posted: Wed Oct 14, 2015 10:22 am
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
Re: Unable to generate PDF or JPG reports
Posted: Wed Oct 14, 2015 10:32 am
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
Re: Unable to generate PDF or JPG reports
Posted: Wed Oct 14, 2015 1:53 pm
by tgriep
Did changing the host file fix the issue?
The IP address for your mail server shouldn't have caused the issue.
Re: Unable to generate PDF or JPG reports
Posted: Wed Oct 14, 2015 2:16 pm
by mcleodc
No afraid not
Re: Unable to generate PDF or JPG reports
Posted: Wed Oct 14, 2015 5:12 pm
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/
Re: Unable to generate PDF or JPG reports
Posted: Thu Oct 15, 2015 4:50 am
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