Page 1 of 4
Proxy agent for Network!!!
Posted: Mon Feb 12, 2018 3:04 pm
by ponnpr7
Is there a proxy agent in Nagios to access remote server since I have several remote server which are not route able on the network. Any help much appreciated.
Re: Proxy agent for Network!!!
Posted: Mon Feb 12, 2018 3:55 pm
by npolovenko
Hi,
@ponnpr7.
There's no built-in proxy agent in Nagios XI. But that doesn't mean you can't use one. A lot of the companies are already using their own proxy agents that comply with their specific requirements. That's why we don't include one with the installation.
Do you have an XI server in one location and few other servers that you want to monitor all in different locations? Or is it one XI in one location and all other servers in the second location? You could also just set up passive checks, that would require a minimum to none firewall configuration on the remote site.
Re: Proxy agent for Network!!!
Posted: Mon Feb 12, 2018 4:46 pm
by ponnpr7
Thanks for your prompt reply. All the server all geographically distributed. There are like 51 sites with 600 some servers. In all the location only one server(called Director) expose to internet the rest talk through the Director. Only Director have public IP both IPv4 and IPv6 the rest have private IPv4. So how do I set the passive check? I installed NRPE but I don't think it work. How do I set passive check?
Thanks,
Ravi
Re: Proxy agent for Network!!!
Posted: Tue Feb 13, 2018 10:16 am
by npolovenko
@ponnpr7, Are they all Linux servers or Windows servers? You could install either a Nagios Core, or a Nagios XI on each Director server. Then within the same network, all other servers would have nrpe agents installed and send check results to the appropriate Director server. Then the director servers can either send the info to a Nagios Fusion server in a central location(
https://www.nagios.com/products/nagios-fusion/) or to another XI server is a central location. Let me know if all this makes sense so far.
Re: Proxy agent for Network!!!
Posted: Tue Feb 13, 2018 10:57 am
by ponnpr7
Hi npolovenko, they are all running on Centos 6.9. First of all we don't have license for Fusion and I don't think my management going to buy it. So how the results going to be sent to Nagiso XI? For the Director to the non-router able server only works on ssh. How do I find out the NRPE agent reaching the Director. I used the below link to installed the NRPE agent
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf. Please advice.
Re: Proxy agent for Network!!!
Posted: Tue Feb 13, 2018 3:20 pm
by npolovenko
First of all we don't have license for Fusion and I don't think my management going to buy it. So how the results going to be sent to Nagiso XI?
@ponnpr7, Yes, as I mentioned check results from the Director servers can be transferred to either Fusion OR XI in a central location. Here's a little schema that will help explain what I'm talking about.
Untitled.png
Configuring remote Director servers to send results to a central location via nrdp is quite easy. Here's a tutorial:
https://assets.nagios.com/downloads/nag ... ith_XI.pdf
How do I find out the NRPE agent reaching the Director. I used the below link to installed the NRPE agent
I'm still not sure where you installed nrpe, did you install in on the Director server, or on the other servers(as shown on my schema)?
Re: Proxy agent for Network!!!
Posted: Tue Feb 13, 2018 3:32 pm
by ponnpr7
@ npolovenko I installed NRPE on the servers I did not installed on the Director. What are you saying I do need to install Nagios XI in Director? You mean full Nagios XI installation? Are there any other alternative?
Re: Proxy agent for Network!!!
Posted: Tue Feb 13, 2018 3:45 pm
by npolovenko
@ponnpr7, NRPE is an active check, so if you choose to install it on the servers you'd face this two problems:
a) You need to open port 5666 on each server
b) Most important one. Since you said those servers only have internal IP addresses there is no way for the central XI to reach them because they're on different networks. There's no direct link if that makes sense?
What are you saying I do need to install Nagios XI in Director?
Either XI or Core. The only other way I could think of is to use Mod Gearman workers, but that's a little bit trickier to set up.
Re: Proxy agent for Network!!!
Posted: Tue Feb 13, 2018 4:38 pm
by ponnpr7
@npolovenko could you please share about the Mod Gearman workers how do I go about it. So I can present to my manager.
Thanks
Re: Proxy agent for Network!!!
Posted: Tue Feb 13, 2018 6:05 pm
by npolovenko
@ponnpr7, You'd install Mod-Gearman on the Director server. It'd execute checks on the other remote servers via nrpe, and then report back to XI. Here are a couple mod gearman tutorials that we have:
https://support.nagios.com/kb/article.php?id=484
also
https://support.nagios.com/kb/article.php?id=225
Let me know if you have more questions.