http https error 404 Configuring_SSL_with_Nagios xi.pdf

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
vmt
Posts: 9
Joined: Wed Jan 05, 2011 4:36 am

http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by vmt »

Hello all,
I want to change from http to https. I assume the information I need is this document:
Configuring_SSL_with_Nagios xi.pdf
but getting an error 404 accessing it.
Problem for me cause I need it urgently for a project.
Someone has the docu running nagios xi with https?

Can someone help?

tia
stefan
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by mguthrie »

Yeah, the link was broken, thanks for the heads up!

It should be accessible now from the following URL within 5mn of this post:
http://assets.nagios.com/downloads/nagi ... ios_xi.pdf

Let us know if you're still having trouble with it.
nmsjunkie
Posts: 18
Joined: Fri Oct 07, 2011 1:36 pm

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by nmsjunkie »

Anyone notice Nagvis no longer function when you force SSL?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by nscott »

It may very well be that there is a call in NagVis that is hardcoded to call to http. You could try doing rewrites with Apache if you want to see if that fixes your problem:

Here is a good link on how to do it:

http://whoopis.com/howtos/apache-rewrite.html
Nicholas Scott
Former Nagios employee
nmsjunkie
Posts: 18
Joined: Fri Oct 07, 2011 1:36 pm

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by nmsjunkie »

Thanks Scott!...if i go directly to https://*.*.*.*/nagvis... it work just fine but kicking it off from within the nagiosxi launch page...it continues to try http:// and fails...any pointers on which files governs the path and iframe window?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by nscott »

nms,

Any calls that Nagios xi makes should go through the config.inc.php, which should be set to https enable as specified in the doc, do you remember editing the config.inc.php to do that?
Nicholas Scott
Former Nagios employee
nmsjunkie
Posts: 18
Joined: Fri Oct 07, 2011 1:36 pm

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by nmsjunkie »

Yes indeed... Added $cfg['use_https']=true

Whats interesting is...if i click no to pass unsecured content (via the internet explorer popup) it shows the page via https which means it is functioning somewhat...also there is a typo in the configuring ssl with nagios.pdf....the NameVirtualHost *.443 should read *:443 (might throw a few folks off when they restart apache)

When i scroll over the link..it still shows http while bbmap and the rest shows https
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by nscott »

nms,

I found where it was hardcoded. IN the file

/usr/local/nagiosxi/html/includes/components/nagvis/nagvis.inc.php

On line 104 there is a call to http://

If you want you can just change it to https, or just take the http part out and have your browser resolve it for you everytime. I'll update this component to use the Nagios xi API to call to reference the config.inc.php and let you know what I've done it.
Nicholas Scott
Former Nagios employee
nmsjunkie
Posts: 18
Joined: Fri Oct 07, 2011 1:36 pm

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by nmsjunkie »

Perfect! Thanks Alot nscott...would have taken me forever to track down which file...(dont ya just hate hard paths :) )
BillKx
Posts: 2
Joined: Fri Oct 07, 2011 8:01 pm

Re: http https error 404 Configuring_SSL_with_Nagios xi.pdf

Post by BillKx »

nscott wrote:nms,

I found where it was hardcoded. IN the file

/usr/local/nagiosxi/html/includes/components/nagvis/nagvis.inc.php

On line 104 there is a call to http://

If you want you can just change it to https, or just take the http part out and have your browser resolve it for you everytime. I'll update this component to use the Nagios xi API to call to reference the config.inc.php and let you know what I've done it.
Thanks for the file link nscott. :D I am glad I found this thread because we were considering moving to https for a project next month. Cheers