Re: How to add report in Dashboards
-
plataformamc3
- Posts: 11
- Joined: Wed Jul 03, 2013 2:56 am
Re: How to add report in Dashboards
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.
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Report PDF is showing 0 kbits
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?
-
plataformamc3
- Posts: 11
- Joined: Wed Jul 03, 2013 2:56 am
Re: Report PDF is showing 0 kbits
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.
Besides, the information from executive summary on the screem seem be correct.
Re: Report PDF is showing 0 kbits
If you still keep the original install directory in /tmp, do the following:
Open the wkhtml install script in a text editor:
Then change this line:
to this:
Then run:
Let us know if this fixes your issue.
Open the wkhtml install script in a text editor:
Code: Select all
vi /tmp/nagiosxi/subcomponents/wkhtml/installCode: Select all
installpath = os.environ['INSTALL_PATH']Code: Select all
installpath = '/tmp/nagiosxi'Code: Select all
cd /tmp/nagiosxi/subcomponents/wkhtml/
./installBe sure to check out our Knowledgebase for helpful articles and solutions!
-
plataformamc3
- Posts: 11
- Joined: Wed Jul 03, 2013 2:56 am
Re: Report PDF is showing 0 kbits
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!!
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!!
You do not have the required permissions to view the files attached to this post.
Re: Report PDF is showing 0 kbits
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.
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.
Code: Select all
tail -f /var/log/httpd/error_logFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
plataformamc3
- Posts: 11
- Joined: Wed Jul 03, 2013 2:56 am
Re: Report PDF is showing 0 kbits
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
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
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")?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
plataformamc3
- Posts: 11
- Joined: Wed Jul 03, 2013 2:56 am
Re: Report PDF is showing 0 kbits
Yes, the result is the same whatever period time I choose
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Report PDF is showing 0 kbits
Are you viewing XI via ssl? If so you need to try tailing the /var/log/httpd/ssl_error log file.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.