Page 3 of 3
Re: Not All Report Create PDFs
Posted: Fri Oct 04, 2013 11:05 am
by lmiltchev
Mike, wkhtmltopdf 0.10.0 rc2 is the correct version. Can you try creating and scheduling a brand new report, and see if it is going to work. Meanwhile, I will check with Nick.
Re: Not All Report Create PDFs
Posted: Fri Oct 04, 2013 11:07 am
by nscott
Yeah, since that is the version now, try scheduling again.
Also, does it also provide a blank when you click the PDF icon in the top? Or is it just when they are scheduled?
Re: Not All Report Create PDFs
Posted: Fri Oct 04, 2013 11:37 am
by mikew
The PDFs seem not to be created as the page is blank when creating and when they are scheduled they are empty with this message:
This attachment appears to be empty.
Please check with the person who sent this.
No anti-virus program interacted with the pdf so that it not it either.
Basically the PDF created seems to not work at all regardless of method.
Re: Not All Report Create PDFs
Posted: Fri Oct 04, 2013 12:51 pm
by nscott
Is there some special localhost setup? On the server it tries to render using localhost explicitly, is localhost available on this system? Was there anything special that had to be done in order to get it to apply configuration?
Re: Not All Report Create PDFs
Posted: Fri Oct 04, 2013 1:24 pm
by mikew
The only thing that may be different is that this Nagios XI is on an internal server that has an external IP.
Internal IP 192.168.1.1
External IP (firewall) xxx.xxx.xxx.xxx
In addition, the external IP is redirected from a high port like 6277 (just an example) and all connections are SSL port 443.
That is the only thing that makes this server different.
Here is /etc/hosts
127.0.0.1 localhost Nagios-Core-Server localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
It is called Nagios-Core-Server but it is XI built on 2012R2.3
Re: Not All Report Create PDFs
Posted: Sat Oct 05, 2013 3:49 pm
by mikew
I performed an upgrade to 2012R2.4b which worked but here are some details that may or may not relate: Notice it does not locate IP or ethernet card. But with ifconfig you can see they exist and are working.
eth0: error fetching interface information: Device not found
==================
UPGRADE COMPLETED!
==================
Logout of the Nagios XI interface and log back in as 'nagiosadmin' to complete the upgrade.
You can access the Nagios XI web interface by visiting:
http:///nagiosxi/
ifconfig
Code: Select all
em1 Link encap:Ethernet HWaddr D4:AE:52:CB:02:DF
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.255 Mask:255.255.255.0
inet6 addr: fa80::d6ae:32bf:fecb:21f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8341754 errors:0 dropped:0 overruns:0 frame:0
TX packets:6607865 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2301951172 (2.1 GiB) TX bytes:2857670055 (2.6 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:62478135 errors:0 dropped:0 overruns:0 frame:0
TX packets:62478135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2303585237 (2.1 GiB) TX bytes:2303585237 (2.1 GiB)
Re: Not All Report Create PDFs
Posted: Sat Oct 05, 2013 5:07 pm
by mikew
So ....I found another clue which may help. I upgraded another machine that has https and port redirection. I upgraded from 2012R2.3 to 2012R2.4b ...same thing happened no PDFs are created. Just a big white page, tried multiple browsers, same thing. But I did find this in the error log:
Code: Select all
Error: Failed loading page https://192.168.1.146/nagiosxi//reports/availability.php?1&hideoptions=1&username=nagiosadmin&ticket=iaaspjr8&locale=en_EN (sometimes it will work just to ignore this error with --load-error-handling ignore)
What is very strange about this error is the IP Address is not even on the same network, it is not even close. I looked in the routing table and I checked to see if there are any aliases but nothing. This IP is coming from something else which tells me that either the PDF creation is looking for the IP or that aliens have finally taken over ...
Re: Not All Report Create PDFs
Posted: Mon Oct 07, 2013 9:35 am
by abrist
What do you have set for your "program" and "external url" under --> Admin --> Manage system config ?
Re: Not All Report Create PDFs
Posted: Mon Oct 07, 2013 3:24 pm
by mikew
Well...that was it. When both servers were set up they were set up by staff who were onsite, internally. Then the firewall was created to redirect traffic from a port and external address to an internal address.
Anyway, that is resolved...thanks for sticking with it. You guys are a great resource and do not get enough credit.