Page 1 of 2
Notifications don't download to PDF
Posted: Wed Jan 30, 2013 2:10 pm
by ockmeyer
I am trying to create a print-out of a list of certain notifications. When I click the "Download As PDF" link all I get is a blank report. Does anyone know how to get this working?
Re: Notifications don't download to PDF
Posted: Wed Jan 30, 2013 2:29 pm
by abrist
Do a running tail on the httpd error log and then click the download pdf link. Paste the log here in a code wrap:
Re: Notifications don't download to PDF
Posted: Wed Jan 30, 2013 4:35 pm
by ockmeyer
Here is what I get:
[Wed Jan 30 14:32:03 2013] [error] [client 100.100.100.100] PHP Notice: Undefined index: objectauthperms in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 358, referer:
http://server.name/nagiosxi/reports/not ... records=25
Re: Notifications don't download to PDF
Posted: Wed Jan 30, 2013 4:38 pm
by abrist
What version of XI are you running?
Re: Notifications don't download to PDF
Posted: Wed Jan 30, 2013 4:40 pm
by ockmeyer
2012R1.3
Re: Notifications don't download to PDF
Posted: Wed Jan 30, 2013 5:20 pm
by slansing
Can you run the following and report the output back?:
Code: Select all
ll /usr/local/nagiosxi/html/includes/
Re: Notifications don't download to PDF
Posted: Wed Jan 30, 2013 5:40 pm
by ockmeyer
Here you go...
Code: Select all
[[email protected] ~]# ll /usr/local/nagiosxi/html/includes
total 1392
-rwxr-x--- 1 nagios nagios 2882 Dec 10 15:25 auth.inc.php
-rwxr-x--- 1 nagios nagios 838 Dec 10 15:25 common.inc.php
drwxr-x--- 53 nagios nagios 4096 Dec 13 08:23 components
-rwxr-x--- 1 nagios nagios 857 Dec 10 15:25 components.inc.php
drwxr-x--- 53 nagios nagios 4096 Oct 31 12:23 configwizards
-rwxr-x--- 1 nagios nagios 570 Dec 10 15:25 configwizards.inc.php
-rwxr-x--- 1 nagios nagios 19786 Dec 10 15:25 constants.inc.php
-rwxr-x--- 1 nagios nagios 24342 Dec 10 15:25 constants-nagioscore.inc.php
drwxr-x--- 3 nagios nagios 4096 Oct 31 12:23 css
drwxr-x--- 9 nagios nagios 4096 Oct 31 12:27 dashlets
-rwxr-x--- 1 nagios nagios 620 Dec 10 15:25 dashlets.inc.php
-rwxr-x--- 1 nagios nagios 123723 Dec 10 15:25 dbauth.inc.php
-rwxr-x--- 1 nagios nagios 12586 Dec 10 15:25 db.inc.php
-rwxr-x--- 1 nagios nagios 54487 Dec 10 15:25 dbl.inc.php
-rwxr-x--- 1 nagios nagios 742 Dec 10 15:25 errors.inc.php
-rwxr-x--- 1 nagios nagios 56 Dec 10 15:25 footer-child.inc.php
-rwxr-x--- 1 nagios nagios 2364 Dec 10 15:25 footer.inc.php
drwxr-x--- 5 nagios nagios 4096 Oct 31 12:23 fpdf
-rwxr-x--- 1 nagios nagios 658 Dec 10 15:25 header-child.inc.php
-rwxr-x--- 1 nagios nagios 6908 Dec 10 15:25 header.inc.php
drwxr-x--- 3 nagios nagios 4096 Nov 9 10:01 js
drwxr-x--- 3 nagios nagios 4096 Dec 10 15:25 lang
-rwxr-x--- 1 nagios nagios 223 Dec 10 15:25 notificationmethods.inc.php
-rw-r----- 1 nagios nagios 9754 Dec 10 15:25 page-default-splash.php
-rwxr-x--- 1 nagios nagios 1840 Dec 10 15:25 page-home-main.php
-rwxr-x--- 1 nagios nagios 1264 Dec 10 15:25 page-home.php
-rwxr-x--- 1 nagios nagios 644 Dec 10 15:25 page-missing.php
-rwxr-x--- 1 nagios nagios 15482 Dec 10 15:25 pageparts.inc.php
drwxr-x--- 2 nagios nagios 4096 Oct 31 12:23 phpmailer
drwxr-x--- 2 nagios nagios 4096 Oct 31 12:23 themes
-rwxr-x--- 1 nagios nagios 2624 Dec 10 15:25 utils-auditlog.inc.php
-rwxr-x--- 1 nagios nagios 22615 Dec 10 15:25 utils-backend.inc.php
-rwxr-x--- 1 nagios nagios 7490 Dec 10 15:25 utils-ccm.inc.php
-rwxr-x--- 1 nagios nagios 15767 Dec 10 15:25 utils-commands.inc.php
-rwxr-x--- 1 nagios nagios 1893 Dec 10 15:25 utils-components.inc.php
-rwxr-x--- 1 nagios nagios 5164 Dec 10 15:25 utils-configwizards.inc.php
-rwxr-x--- 1 nagios nagios 66091 Dec 10 15:25 utils-dashboards.inc.php
-rwxr-x--- 1 nagios nagios 49207 Dec 10 15:25 utils-dashlets.inc.php
-rwxr-x--- 1 nagios nagios 4123 Dec 10 15:25 utils-email.inc.php
-rwxr-x--- 1 nagios nagios 10147 Dec 10 15:25 utils-events.inc.php
-rwxr-x--- 1 nagios nagios 1626 Dec 10 15:25 utils-graphtemplates.inc.php
-rwxr-x--- 1 nagios nagios 27363 Dec 10 15:25 utils.inc.php
-rwxr-x--- 1 nagios nagios 214851 Dec 10 15:25 utilsl.inc.php
-rwxr-x--- 1 nagios nagios 7487 Dec 10 15:25 utils-links.inc.php
-rwxr-x--- 1 nagios nagios 62478 Dec 10 15:25 utils-menu.inc.php
-rwxr-x--- 1 nagios nagios 8856 Dec 10 15:25 utils-metrics.inc.php
-rwxr-x--- 1 nagios nagios 1560 Dec 10 15:25 utils-mibs.inc.php
-rwxr-x--- 1 nagios nagios 103235 Dec 10 15:25 utils-nagioscore.inc.php
-rwxr-x--- 1 nagios nagios 1704 Dec 10 15:25 utils-notificationmethods.inc.php
-rwxr-x--- 1 nagios nagios 56011 Dec 10 15:25 utils-notifications.inc.php
-rwxr-x--- 1 nagios nagios 28543 Dec 10 15:25 utils-objects.inc.php
-rwxr-x--- 1 nagios nagios 2107 Dec 10 15:25 utils-perms.inc.php
-rwxr-x--- 1 nagios nagios 33862 Dec 10 15:25 utils-reports.inc.php
-rw-r----- 1 nagios nagios 1235 Dec 10 15:25 utils-rss.inc.php
-rwxr-x--- 1 nagios nagios 4708 Dec 10 15:25 utils-status.inc.php
-rwxr-x--- 1 nagios nagios 2042 Dec 10 15:25 utils-systat.inc.php
-rwxr-x--- 1 nagios nagios 10926 Dec 10 15:25 utils-tables.inc.php
-rwxr-x--- 1 nagios nagios 1478 Dec 10 15:25 utils-themes.inc.php
-rwxr-x--- 1 nagios nagios 2428 Dec 10 15:25 utils-tools.inc.php
-rwxr-x--- 1 nagios nagios 3265 Dec 10 15:25 utils-updatecheck.inc.php
-rwxr-x--- 1 nagios nagios 15759 Dec 10 15:25 utils-users.inc.php
-rwxr-x--- 1 nagios nagios 17507 Dec 10 15:25 utils-views.inc.php
-rwxr-x--- 1 nagios nagios 5294 Dec 10 15:25 utils-wizards.inc.php
-rwxr-x--- 1 nagios nagios 16631 Dec 10 15:25 utilsx.inc.php
-rwxr-x--- 1 nagios nagios 34014 Dec 10 15:25 utilsx-json.php
-rwxr-x--- 1 nagios nagios 3375 Dec 10 15:25 utils-xmlauditlog.inc.php
-rwxr-x--- 1 nagios nagios 30897 Dec 10 15:25 utils-xmlobjects.inc.php
-rwxr-x--- 1 nagios nagios 28900 Dec 10 15:25 utils-xmlreports.inc.php
-rwxr-x--- 1 nagios nagios 39634 Dec 10 15:25 utils-xmlstatus.inc.php
-rwxr-x--- 1 nagios nagios 5523 Dec 10 15:25 utils-xmlsysstat.inc.php
-rwxr-x--- 1 nagios nagios 1749 Dec 10 15:25 utils-xmlusers.inc.php
Re: Notifications don't download to PDF
Posted: Thu Jan 31, 2013 11:52 am
by lmiltchev
Open your "/etc/php.ini" file in a text editor, and turn off display errors:
Restart apache:
and try downloading the report as PDF again.
Hope this helps.
Re: Notifications don't download to PDF
Posted: Thu Jan 31, 2013 12:08 pm
by ockmeyer
The display_errors = Off was already set in /etc/php.ini
I restarted httpd again, but the pdf is still blank.
Re: Notifications don't download to PDF
Posted: Thu Jan 31, 2013 1:02 pm
by lmiltchev
Can you do a running tail on the apache error log one more time?
Code: Select all
tail -f /var/log/httpd/error_log &> debug.txt
then go to Reports, click on the PDF icon, when you see a blank screen, go back to the terminal, stop the tail by pressing Ctrl+C, and post the debug.txt file, that was generated.