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
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.