Page 1 of 1

When I try to use the PDF button I get a logon page PDF

Posted: Fri Jul 17, 2015 10:47 am
by tecnalb
Hello, when I use the button to create PDF I get a PDF of the NNA logon page. I'm logged in and using the system, but just get this crazy PDF.

I am running Nagios Network Analyzer • 2R1.0 •

Re: When I try to use the PDF button I get a logon page PDF

Posted: Fri Jul 17, 2015 11:07 am
by tgriep
Did you enable SSL on the Network Analyzer system?

I found a previous post that may help you out with this issue. Take a look at it and see if this helps.
https://support.nagios.com/forum/viewto ... 3&start=40

Re: When I try to use the PDF button I get a logon page PDF

Posted: Fri Jul 17, 2015 3:47 pm
by tecnalb
I have not enabled SSL at this point

Re: When I try to use the PDF button I get a logon page PDF

Posted: Mon Jul 20, 2015 9:01 am
by lmiltchev
I have not enabled SSL at this point
Are you using a proxy? Have you tried to change the API key to see if this is going to fix the issue? Do you have any "old" PDFs left over in "/tmp"? Do you see any errors in the apache error log? Run:

Code: Select all

tail -f /var/log/httpd/error_log
then try to download a pdf. When you see the logon page, stop the tail (Ctrl + c), copy/paste the output.

Re: When I try to use the PDF button I get a logon page PDF

Posted: Mon Jul 20, 2015 3:11 pm
by tecnalb
Not a lot of good info here:

[root@nna ~]# tail -f /var/log/httpd//error_log
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done

Re: When I try to use the PDF button I get a logon page PDF

Posted: Mon Jul 20, 2015 3:31 pm
by tgriep
Login to the Network Analyzer, click on your username in the top right corner, Click on the Generate New Key button under the API section and see if that resolves it for you.

Re: When I try to use the PDF button I get a logon page PDF

Posted: Mon Jul 20, 2015 3:48 pm
by tecnalb
No such button exists... see attached... I am logged in as nagiosadmin

Re: When I try to use the PDF button I get a logon page PDF

Posted: Mon Jul 20, 2015 3:59 pm
by tgriep
In NA, click on Administration, User Management, edit the nagiosadmin account, enable API access, save it and see if that works for you.

Re: When I try to use the PDF button I get a logon page PDF

Posted: Mon Jul 20, 2015 4:13 pm
by tecnalb
That was it. I just upgraded from the initial NNA version last week. Had not been using it. I suppose that feature was not there before!

Great!! Thanks for the help!!