Page 1 of 2
Re: How to add report in Dashboards
Posted: Tue Aug 20, 2013 6:07 am
by plataformamc3
Hello and good morning. I'd like to apologize you for my bad english. I am not sure how nagios forum works because I can't post my problem in a new thread and this seem be similar to my own problem. I'm going to try to explain it.
I'd like to send a executive summary to my email acount but the file is generated whit O kb and acrobat, of course, can't read it.
The messages in file logs said:
HHTP request sent, awaiting response ...sh:/usr/bin/wkhtmltopdf: No such file or directory....
Undefined variable: fullbody in /usr/local/nagiosxi/reports/execsummary.php on line 360
200 ok....
If I send miself another kind of reports, as availability or state history all work fine.
Could you help me?
Thank you so much.
Re: Report PDF is showing 0 kbits
Posted: Tue Aug 20, 2013 9:34 am
by slansing
What version of Nagios XI are you using? Does this happen with other reports? Is there valid data in the executive report for the timeperiod you selected?
Re: Report PDF is showing 0 kbits
Posted: Thu Aug 22, 2013 1:25 am
by plataformamc3
I'm using Nagios XI (2012 R2.2) version. Availability, state history, top alerts, alert histogram and notifications are working fine.
Besides, the information from executive summary on the screem seem be correct.
Re: Report PDF is showing 0 kbits
Posted: Thu Aug 22, 2013 11:47 am
by lmiltchev
If you still keep the original install directory in /tmp, do the following:
Open the wkhtml install script in a text editor:
Code: Select all
vi /tmp/nagiosxi/subcomponents/wkhtml/install
Then change this line:
Code: Select all
installpath = os.environ['INSTALL_PATH']
to this:
Then run:
Code: Select all
cd /tmp/nagiosxi/subcomponents/wkhtml/
./install
Let us know if this fixes your issue.
Re: Report PDF is showing 0 kbits
Posted: Fri Aug 23, 2013 2:38 am
by plataformamc3
Morning!!
Execsummary report is already working now although error_log file shows next message:
PHP Notice: Undefinied variable: varr in usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 282, referer:
http://nagiosxi/nagiosxi/reports/execsummary.php?
I don't know if it's important or not because in pdf file is show the same information than nagiosxi screen.
We are having another problem... Event log report only works from legacy mode.
Even log available reports screen is emply while even log legacy reports screen is full of events.
Could you help me whit this issue too?
Thank you so much!!
Re: Report PDF is showing 0 kbits
Posted: Fri Aug 23, 2013 10:57 am
by abrist
The php notice will probably not cause this issue. Lets check the logs.
Do a running tail on the apache error log. While the tail is running, try browsing to the "event log" in XI. Copy the output of the tail and post it in code wraps in your next post. Kill the tail with crtl-c after you have copied the errors.
Re: Report PDF is showing 0 kbits
Posted: Wed Aug 28, 2013 2:09 am
by plataformamc3
Hi, morning!
Error_log file showed...
[Tue Aug 27 13:06:43 2013] [info] [client x.x.x.x] (32)Broken pipe: core_output_filter: writing data to the network
but surfing by the internet I have been able to resolve the problem. I have added next line in /etc/httpd/conf/httpd.conf
EnableSendfile Off
And now, httpd service seem to work ok.
Unfortunately, the problem whit event log reports is going and httpd/error_log file don't show any problem.
This is the result of tail -f /var/log/httpd/error_log after restart httpd service and browser to the "event log"
[Tue Aug 27 10:14:31 2013] [notice] caught SIGTERM, shutting down
[Tue Aug 27 10:14:33 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 27 10:14:33 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 27 10:14:33 2013] [notice] Digest: done
[Tue Aug 27 10:14:33 2013] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Tue Aug 27 10:14:33 2013] [info] LDAP: SSL support available
[Tue Aug 27 10:14:33 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Tue Aug 27 10:14:33 2013] [info] Server built: Feb 13 2012 22:25:23
Re: Report PDF is showing 0 kbits
Posted: Wed Aug 28, 2013 11:44 am
by lmiltchev
Do you get an "empty" Event Log report when you change the "Period" from the "Last 24 Hours" to a something else (let's say "This Month")?
Re: Report PDF is showing 0 kbits
Posted: Thu Aug 29, 2013 12:45 am
by plataformamc3
Yes, the result is the same whatever period time I choose
Re: Report PDF is showing 0 kbits
Posted: Thu Aug 29, 2013 11:31 am
by sreinhardt
Are you viewing XI via ssl? If so you need to try tailing the /var/log/httpd/ssl_error log file.