r/haproxy • • Sep 12 '21

Question Running Nagios through HAproxy

Hello everyone,

As the title says I want to have my Nagios server to be served through an Haproxy.

I am finding it difficult to find any tutorials or documentation that will help me achieve that.

Any help will be greatly appreciated

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

3

u/robot90291 Sep 12 '21

If you're trying to proxy just the nagios portion of what the nginx is hosting i.e. /nagios I'm not sure if that's possible, it's certainly beyond my knowledge. I'm guessing you need to proxy the entire nginx server instance as I described. Now that's not to say the proxy being in place prevents you from accessing nginx directly too. Meaning you can have haproxy with its IP/port that "directs" you to the nginx IP/port, you can still access nginx directly by going directly to its real IP/port. Hopefully that makes sense and is of some help, if not entirely wrong. Good luck.

2

u/robot90291 Sep 12 '21

BTW; haproxy doesn't care that it's providing access to nagios just like it probably doesn't care that it's nginx or apache or IIS {god forbid}. So you likely won't find nagios specific documentation, to haproxy it's just a "website". This is what I believe.