Page 1 of 1
http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Sun Sep 25, 2011 7:47 am
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
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Tue Sep 27, 2011 1:54 pm
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.
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 1:50 pm
by nmsjunkie
Anyone notice Nagvis no longer function when you force SSL?
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 3:13 pm
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
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 3:20 pm
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?
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 3:40 pm
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?
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 3:45 pm
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
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 4:38 pm
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.
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 6:24 pm
by nmsjunkie
Perfect! Thanks Alot nscott...would have taken me forever to track down which file...(dont ya just hate hard paths

)
Re: http https error 404 Configuring_SSL_with_Nagios XI.pdf
Posted: Fri Oct 07, 2011 8:06 pm
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.

I am glad I found this thread because we were considering moving to https for a project next month. Cheers