Page 1 of 1

Shedulined reports part 2

Posted: Thu Jul 14, 2016 2:40 pm
by benhank
howdi,
I created this post

Code: Select all

https://support.nagios.com/forum/viewtopic.php?f=16&t=39040
and was able to get the type of report I needed.
however when i looked into to email which contained a pdf and jpeg of the report here is what I got:
pdf.PNG
and also:
jpeg.PNG
im running N5 latest version.

Re: Shedulined reports part 2

Posted: Thu Jul 14, 2016 3:09 pm
by lmiltchev
Can you upload the "damaged" PDF file, so that we can take a look at it?

Re: Shedulined reports part 2

Posted: Thu Jul 14, 2016 3:35 pm
by benhank
there you go!

Re: Shedulined reports part 2

Posted: Thu Jul 14, 2016 4:50 pm
by lmiltchev
I can confirm that generating reports (when you are scheduling a page) is broken in 5.2.9. The issue as been fixed in our DEV revision, meaning this should work in Nagios XI 5.3, which should be out before the Nagios conference.

Re: Shedulined reports part 2

Posted: Thu Jul 14, 2016 4:52 pm
by nietonoshana
Hello this is a bug
NEW TASK ID 8874 created - Nagios XI Bug Report: Scheduling a page (not a report page) as PDF doesn't send proper PDF

First take an XI backup,
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Then unzip the attached file and replace these files and try it again:

/usr/local/nagiosxi/html/includes/components/scheduledreporting/scheduledreporting.inc.php
/usr/local/nagiosxi/html/includes/components/scheduledreporting/schedulereport.php
/usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php

Re: Shedulined reports part 2

Posted: Fri Jul 15, 2016 9:08 am
by lmiltchev
Thanks for sharing, nietonoshana!
@benhank You can try this fix - it was provided by Sean, and I am pretty sure that's what is used in XI 5.3... or you can wait for the latest release. It's up to you. In any case, let us know when/if the issue has been resolved. Thanks!

Re: Shedulined reports part 2

Posted: Mon Jul 18, 2016 10:01 am
by benhank
Thanks! That works!
My I humbly request that you guys add an aoption to make the pdf landscape( for readability) and a csv option?
Or can you should me how to mod the component if possible to make the pfd landscape instead of portrate?

Other than that I'm good thanks!

Re: Shedulined reports part 2

Posted: Mon Jul 18, 2016 11:07 am
by mcapra
benhank wrote:a csv option?
You should already be able to do this for reports with that sort of data. Here's the "Availability" option on 5.2.9:

Image
benhank wrote:Or can you should me how to mod the component if possible to make the pfd landscape instead of portrate?
I put in an internal feature request for this functionality (ID 9095). There's ways to do this within Acrobat, but I think it would be a good addition to reporting.

Is it alright if I lock this thread and mark the issue as resolved?

Re: Shedulined reports part 2

Posted: Mon Jul 18, 2016 12:35 pm
by benhank
yep you can
and in case I wasnt clear , big thanks to nietonoshana for the help!