Page 1 of 1
Scheduled report PDF errors
Posted: Mon Mar 03, 2014 2:31 pm
by vAJ
Running 2012r2.9
wkhtmltopdf 0.9.9
When a scheduled report fires with PDF output, the attachment is only a few hundred bytes and Acrobat throw the attached error.
httpd error log shows:
Code: Select all
HTTP request sent, awaiting response... Unknown long argument --no-outline
is there a editable config where I can set HTMLtoPDF options for NagiosXI? Or is this in your compiled code?
Re: Scheduled report PDF errors
Posted: Mon Mar 03, 2014 2:33 pm
by vAJ
CSV attachement looks good.
Re: Scheduled report PDF errors
Posted: Mon Mar 03, 2014 2:55 pm
by lmiltchev
What type of report are you trying to schedule? Are you having issues with ALL scheduled reports? Can you download reports in the GUI as PDFs?
Re: Scheduled report PDF errors
Posted: Mon Mar 03, 2014 3:03 pm
by vAJ
trying to DL a PDF report just gives me a white page.
Looks like the --no-outline option you are calling is not valid in 0.9.9, and current release is 0.12
OK to upgrade to latest?
Re: Scheduled report PDF errors
Posted: Mon Mar 03, 2014 3:13 pm
by lmiltchev
I am not sure what went wrong but you should be using ver. 0.10.0 (that's what it is in our install script)...
Try reinstalling wkhtmltopdf:
Code: Select all
cd /tmp/nagiosxi/subcomponents/wkhtml
./install
and check the version:
Re: Scheduled report PDF errors
Posted: Mon Mar 03, 2014 3:36 pm
by vAJ
Yep, looks like it didn't install at some point in the last few upgrades... Checked another instance that I don' t have any reports sending PDF and wkhtmltopdf wasn't even installed.
Anyhow, they're working now. Thx!
Re: Scheduled report PDF errors
Posted: Mon Mar 03, 2014 3:55 pm
by slansing
Awesome, we'll keep an eye out and see if this happens for other users, thank you!