Page 1 of 1

Reporting PDF/CSV/Email is not working

Posted: Thu Jan 10, 2013 6:44 pm
by ecarrasq
Linux Distribution and version? CentOS, 2.6.18-308.16.1.el5PAE
32 or 64bit? 32bit
VMware Image or Manual Install of XI? VMware Image
Are there specials configurations on your system, ie; is Gnome installed? No
Are you using a proxy? No
Are you using SSL? Yes, to log into the web console via browser, https is required.
Nagios Version? NagiosXi 2012R1.3

When I try to export any report to PDF/CSV, or even when I try to email and/or schedule a report to email, it comes out blank.

Please help.

Thanks,
Eddie

Re: Reporting PDF/CSV/Email is not working

Posted: Fri Jan 11, 2013 10:54 am
by scottwilkerson
Can you tail the following log while trying again to see if any errors emerge

Code: Select all

tail -f /var/log/httpd/error_log
Thx

Re: Reporting PDF/CSV/Email is not working

Posted: Fri Jan 11, 2013 5:04 pm
by ecarrasq
httpd error log attached

Re: Reporting PDF/CSV/Email is not working

Posted: Mon Jan 14, 2013 10:31 am
by slansing
It looks like you are getting some permissions conflicts within your html directory, please run the following and let me know the output when you tail afterwords:

Code: Select all

s -l /usr/local/nagiosxi/html/

chage apache -l

chage nagios -l

Re: Reporting PDF/CSV/Email is not working

Posted: Tue Jan 15, 2013 4:09 pm
by ecarrasq
ll /usr/local/nagiosxi/html/
total 248
drwxr-x--- 2 nagios nagios 4096 Jan 11 2010 about
drwxr-x--- 2 nagios nagios 4096 Mar 22 2010 account
drwxr-x--- 2 nagios nagios 4096 Jan 11 2010 addons
drwxr-x--- 2 nagios nagios 4096 Nov 2 10:36 admin
-rwxr-x--- 1 nagios nagios 19681 Jan 8 09:57 ajaxhelper.php
-rwxr-x--- 1 nagios nagios 1533 Jan 8 09:57 ajaxproxy.php
drwxr-x--- 3 nagios nagios 4096 Jun 12 2012 backend
drwxr-x--- 3 nagios nagios 4096 Mar 22 2012 config
-rwxr-x--- 1 nagios nagios 7890 Jan 8 09:57 config.inc.dist
-rwxr-x--- 1 nagios nagios 5170 Jan 8 09:57 config.inc.php
-rwxr-x--- 1 nagios nagios 5170 Jan 8 09:57 config.inc.saved
-rwxr-x--- 1 nagios nagios 216 Nov 2 10:36 cookie.txt
drwxr-x--- 2 nagios nagios 4096 Jan 11 2010 dashboards
drwxr-x--- 4 nagios nagios 4096 Jan 11 2010 db
drwxr-x--- 3 nagios nagios 4096 Jan 11 2010 downloads
drwxr-x--- 2 nagios nagios 4096 Jan 11 2010 help
drwxr-x--- 2 nagios nagios 4096 Nov 2 10:36 images
drwxr-x--- 11 nagios nagios 4096 Nov 2 11:41 includes
-rwxr-x--- 1 nagios nagios 997 Jan 8 09:57 index.php
-rwxr-x--- 1 nagios nagios 6785 Jan 8 09:57 install.php
-rwxr-x--- 1 nagios nagios 83671 Jan 8 09:57 login.php
-rw------- 1 nagios nagios 2212 Jan 8 09:57 loginsplash.inc.php
drwxr-x--- 2 nagios nagios 4096 Jan 11 2010 perfgraphs
drwxr-x--- 2 nagios nagios 4096 Apr 27 2012 reports
-rwxr-x--- 1 nagios nagios 15219 Jan 8 09:57 rr.php
-rwxr-x--- 1 nagios nagios 6332 Jan 8 09:57 suggest.php
drwxr-x--- 2 nagios nagios 4096 Jan 5 2012 tools
-rwxr-x--- 1 nagios nagios 3490 Jan 8 09:57 upgrade.php
drwxr-x--- 2 nagios nagios 4096 Jan 11 2010 views


chage apache -l
Last password change : Jan 08, 2010
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7


chage nagios -l
Last password change : Jan 11, 2010
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

Re: Reporting PDF/CSV/Email is not working

Posted: Wed Jan 16, 2013 12:12 pm
by lmiltchev
Run the following command in terminal to start capturing the output:

Code: Select all

tail -f /var/log/httpd/error_log &> debug.txt
Then from the Nagios XI web interface, go to: Reports->Availability->Download As PDF

After the browser has returned some output to the screen, press Ctrl+C to stop the log tail, and post the "debug.txt" file that was generated by the above instructions.

Re: Reporting PDF/CSV/Email is not working

Posted: Thu Jan 17, 2013 11:08 am
by ecarrasq
debug.txt attached.

Re: Reporting PDF/CSV/Email is not working

Posted: Thu Jan 17, 2013 12:37 pm
by lmiltchev
You have some certificate errors in the debug.txt. Did you follow our documentation while configuring SSL with Nagios XI?

Run the following commands, and show us the output:

Code: Select all

ll /usr/local/nagiosxi/html/includes/js
cat /etc/group | grep nag