wkhtmltopdf

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ksafa
Posts: 91
Joined: Wed Jan 15, 2014 3:05 pm

wkhtmltopdf

Post by ksafa »

Anybody use wkhtmltopdf to generate pdfs from command line? We are attempting to automate some dashboard pdfs using this command. It generates the PDF but its of the logon page rather than the actual dashboard url. I attempted using wkhtmltopdf --username --password but still no luck. Anybody try this before and got it working?

Thanks,
Khaled
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: wkhtmltopdf

Post by rkennedy »

The dashboards can be automatically scheduled to send from the GUI already by hovering over the 3 lines next to Logout, and clicking the first icon down (Schedule Page).

My guess is when you reference the dashboard page, you'll need to either have automatic login enabled, or append your username=&ticket= to the URL.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: wkhtmltopdf

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee
ksafa
Posts: 91
Joined: Wed Jan 15, 2014 3:05 pm

Re: wkhtmltopdf

Post by ksafa »

Yes. Thank you. you can close this thread.
Locked