VMware Cloud Community
irvingpop
Contributor
Contributor

Hyperic UI behind a proxy

Howdy all! I'm trying out the Hyperic 3.1 beta and so far I'm quite impressed!

I would like to put my Hyperic UI behind an Apache-based proxy, but I'm running in to Hyperic server-side issues. The UI is writing links/redirects wrong, it doesn't seem to be automatically detecting the location correctly, I also haven't found a way to hardcode it.

Ex 1: Proxy from https://adminsite/hyperic/ -> http://hypericserver:7080/
In this case, all of the links/IMG SRC tags get written as /Login.do and /images/whatever, rather than /hyperic/Login.do, etc.

Ex 2: Proxy from https://adminsite:1443/ -> http://hypericserver:7080/
The links/IMG SRC tags actually get written correctly, but redirects drop the port number, so /Login.do sends me to https://adminsite/Dashboard.do instead of https://adminsite:1443/Dashboard.do.
If I manually re-add the port number into the browser window, I can get the Dashboard and the links actually work, but some actions (clicking on items from the Map tool, hitting Cancel from editing a resource, etc) write the link/redirect incorrect.

So: Can I A) hard-code the Base URL for links/redirects/etc somewhere in the Hyperic server configuration or B) use mod_jk instead of mod_proxy to handle fixing up the links/redirects/etc?

TIA,
-Irving
0 Kudos
3 Replies
excowboy
Virtuoso
Virtuoso

Hyperic is based on JBoss, so I think the best way to connect Hyperic HQ with an Apache is mod_jk.

btw: I advice you to use 3.0.5 to get a good impression on Hyperic HQ

Message was edited by: excowboy
0 Kudos
irvingpop
Contributor
Contributor

Hi excowboy:

Thanks for the tip, I'll try setting up mod_jk here soon and I'll report back my results. I haven't found any discussion of mod_jk setup here in the forums or in the documentation so far. I've been around the block a few times with mod_jk so I'll see what I can figure out.

It was a tough call about 3.0.5 vs. 3.1 beta. So far I'm lovin my 3.1 setup, my firm does *a lot* of custom Nagios monitoring setups, we're hard pressed not to start using Hyperic in some situations. Is there something I would like better in 3.0.5, or do you think it would just be a smoother ride?
0 Kudos
excowboy
Virtuoso
Virtuoso

> Hi excowboy:
>
> Thanks for the tip, I'll try setting up mod_jk here
> soon and I'll report back my results. I haven't
> found any discussion of mod_jk setup here in the
> forums or in the documentation so far. I've been
> around the block a few times with mod_jk so I'll see
> what I can figure out.

You didn't find any discussion about setting up mod_jk because it's not Hyperic specific task,
Have a look at this page:
http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss
The only important configuration file within Hyperic HQ for mod_jk is HQSERVER_HOME/hq-engine/server/default/deploy/jbossweb-tomcat55.sar/server.xml
There you can find a portnumber for communication with Apache.

>
> It was a tough call about 3.0.5 vs. 3.1 beta. So
> far I'm lovin my 3.1 setup, my firm does *a lot* of
> custom Nagios monitoring setups, we're hard pressed
> not to start using Hyperic in some situations. Is
> there something I would like better in 3.0.5, or do
> you think it would just be a smoother ride?

For evalutation I would use the stable version 3.0.5. It's very stable and sophisticated.
If you get some errors in 3.1 beta, you might not know if you did anything wrong or if its just a issue of the beta.
0 Kudos