Page 1 of 2
PDF Saving Filename issue
Posted: Wed Jun 18, 2014 10:36 pm
by rajasegar
Nagios XI 2012R2.9
Offloaded DB
RHEL 6.5 x64
Manual Install
19-06-2014 11-28-48 AM.png
Save as pdf is saving as histogram.php. Have to manually change the file extension to pdf after saving.
Same problem in Firefox 30 and also IE 9
Save as csv is saving correctly as .csv
Re: PDF Saving Filename issue
Posted: Thu Jun 19, 2014 10:30 am
by lmiltchev
I was not able to recreate the issue in house. I can save PDFs just fine in all major browsers.
Were you able to save PDFs successfully in the past? Have you made any changes to the system prior to seeing this problem? Try to save a report as PDF, then run:
and show us the output in code wraps.
Re: PDF Saving Filename issue
Posted: Thu Jun 19, 2014 6:17 pm
by rajasegar
lmiltchev wrote:I was not able to recreate the issue in house. I can save PDFs just fine in all major browsers.
Were you able to save PDFs successfully in the past? Have you made any changes to the system prior to seeing this problem? Try to save a report as PDF, then run:
and show us the output in code wraps.
See the log below, there was no errors generated when I executed the PDF save.
All the errors below were from yesterday.
Code: Select all
[Thu Jun 19 18:11:26 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:11:36 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:11:41 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:11:52 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:12:09 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php?cmd=view&type=service
[Thu Jun 19 18:12:27 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:12:48 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:13:07 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:13:24 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:13:55 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:14:10 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:14:29 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:14:45 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:15:04 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:15:25 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:15:41 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:15:58 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:16:19 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:16:35 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:16:52 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:17:00 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php?cmd=view&type=service
[Thu Jun 19 18:17:45 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:17:51 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:17:58 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php?cmd=view&type=service
[Thu Jun 19 18:18:07 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:18:25 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:18:41 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:19:01 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:19:17 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:19:45 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:20:05 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:20:21 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:20:30 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:20:44 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:21:03 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:21:24 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:21:47 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:22:07 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:22:27 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:22:45 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:23:01 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:23:09 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:23:25 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
[Thu Jun 19 18:23:44 2014] [error] [client 10.17.44.201] PHP Notice: Undefined variable: pagejumpto in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 274, referer: http://10.17.19.235/nagiosxi//includes/components/ccm/index.php
Loading pages (1/6)
[> ] 0%
[======> ] 10%
[======> ] 11%
[=======> ] 13%
[==========> ] 17%
[============> ] 20%
[=============> ] 23%
[===============> ] 26%
[==================> ] 31%
[====================> ] 34%
[=====================> ] 35%
[===========================> ] 45%
[==============================> ] 51%
[==================================> ] 58%
[======================================> ] 64%
[=======================================> ] 66%
[==========================================> ] 70%
[===========================================> ] 73%
[=============================================> ] 75%
[==============================================> ] 77%
[=================================================> ] 82%
[======================================================> ] 90%
[============================================================] 100%
Counting pages (2/6)
[============================================================] Object 1 of 1
Resolving links (4/6)
[============================================================] Object 1 of 1
Loading headers and footers (5/6)
Printing pages (6/6)
[> ] Preparing
[============================================================] Page 1 of 1
Done
BTW, this is the listing of the directory. createpdf.php and execsummary.php does not have execute permission.
Is this right?
20-06-2014 07-37-40 AM.png
Re: PDF Saving Filename issue
Posted: Fri Jun 20, 2014 10:42 am
by lmiltchev
Permissions are fine. This is not your issue.
Are you right-clicking on the "PDF" icon (Download As PDF) and selecting "Save Link As..."? You need to left-click on the "PDF" icon to view the report then click on "Save a copy" (the diskette icon) within the report. You can use the right-click->save link as..., but you will need to rename the extension of the file to ".pdf". Let me know if this helped.
Re: PDF Saving Filename issue
Posted: Mon Jun 23, 2014 1:48 am
by rajasegar
lmiltchev wrote:Permissions are fine. This is not your issue.
Are you right-clicking on the "PDF" icon (Download As PDF) and selecting "Save Link As..."? You need to left-click on the "PDF" icon to view the report then click on "Save a copy" (the diskette icon) within the report. You can use the right-click->save link as..., but you will need to rename the extension of the file to ".pdf". Let me know if this helped.
I am clicking not right clicking. Anyway see the screenshots below.
Using this option to save, results in correct pdf file extension
ok-23-06-2014 02-43-45 PM.png
Using this option however, results in php extension
notw-23-06-2014 02-44-38 PM.png
Please fix this issue. Thanks
Re: PDF Saving Filename issue
Posted: Mon Jun 23, 2014 11:56 am
by lmiltchev
Do you have the correct "Program URL" set up (Admin->Manage System Config)? Are you using external URL? Can you open the report in the browser, when you go to: Reports->Alert Histogram->right-click on the PDF icon, and select "Open Link in New Tab"? What happens, when you left-click, and change the file extension from "php" to "pdf"? Can you view the report then?
Re: PDF Saving Filename issue
Posted: Mon Jun 23, 2014 6:44 pm
by rajasegar
lmiltchev wrote:Do you have the correct "Program URL" set up (Admin->Manage System Config)? Are you using external URL? Can you open the report in the browser, when you go to: Reports->Alert Histogram->right-click on the PDF icon, and select "Open Link in New Tab"? What happens, when you left-click, and change the file extension from "php" to "pdf"? Can you view the report then?
Do you have the correct "Program URL" set up (Admin->Manage System Config)?
Yes
Are you using external URL?
No
Can you open the report in the browser, when you go to: Reports->Alert Histogram->right-click on the PDF icon, and select "Open Link in New Tab"?
It comes out with a save dialog with the php extension but says it is a PDF file type
24-06-2014 07-46-24 AM.png
Here is the same save dialog when triggered from the graph save options
24-06-2014 08-05-42 AM.png
What happens, when you left-click, and change the file extension from "php" to "pdf"? Can you view the report then?
Yes, as updated earlier in this thread, the file is a PDF just the extension is wrong.
Re: PDF Saving Filename issue
Posted: Tue Jun 24, 2014 12:29 pm
by lmiltchev
Can you go to the Options menu in Firefox, click on "Applications", type "pdf" in the "Search" bar, hit "Enter" and show us a screenshot of this page?
Re: PDF Saving Filename issue
Posted: Tue Jun 24, 2014 6:32 pm
by rajasegar
lmiltchev wrote:Can you go to the Options menu in Firefox, click on "Applications", type "pdf" in the "Search" bar, hit "Enter" and show us a screenshot of this page?
25-06-2014 07-31-36 AM.png
Re: PDF Saving Filename issue
Posted: Wed Jun 25, 2014 9:48 am
by lmiltchev
Change "Always ask" action to "Use Adobe Reader (default)" or to "Use Adobe Acrobat (in Firefox)", or to anything else that you might use to view PDFs in the browser. Click "OK".
See if you can open PDFs now. If you can open the report as a PDF, you can click on the "Save" button within the report to save it.