Proxy agent for Network!!!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Proxy agent for Network!!!

Post by ponnpr7 »

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.
. Why are you saying little bit trickier?

Thanks,
Ravi
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Proxy agent for Network!!!

Post by ponnpr7 »

@npolovenko do I need to install on the Nagios XI as well.

Thanks,
Ravi
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Proxy agent for Network!!!

Post by npolovenko »

@ponnpr7, Maybe not the tricky word, but I'd say that path requires some prior understanding of how modgearman works. Yes, you'd need to install mod gearman on the XI server as well. Feel free to open a support ticket if you choose to go that route.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Proxy agent for Network!!!

Post by ponnpr7 »

Hi, Well you can install NRPE agents on director servers, and it'll work if you open port 5666. NRPE is an active agent, so XI will reach out to the Director servers via open port 5666. But how are you going to monitor other servers that do not have a direct access to the internet? You can't. Your options are to either install Core/XI on director servers then use NRPE from the director servers to check other servers on the same network -> and that's going to work because the Director server is on the same network with other servers. And then the director server will collect and send all the info to the server in a central location via http or https. Or instead of installing Core/or XI on director servers you can install a remote mod gearman worker. It is almost the same as installing Nagios, it will still use NRPE to check servers in the local network, then it will collect the info and send it over to XI.
Let me know if all this makes sense so far?
PS: It's better if you could post in the Forum because we rarely use PM and the messages are not showing up on the support dashboard, so I might forget to check my inbox.

@npolovenko this was from the PM, Ok let me brief again little bit about the Network portion. Director(public ip routeable). Others which are connected to Director are Private IPs' not routable but from Director can be SSH to the other servers and from Director can't ping the other servers. But the Director can be pingable from the other servers. So my question just with NRPE plugin installed on the Director is good enough to pull data from other servers and send to Main Nagios XI? I reason I asked I don't think so I can installed the Nagios XI/Nagios Core because this first steps(Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode.) Please advice!!!
kyang

Re: Proxy agent for Network!!!

Post by kyang »

Where is Nagios XI installed since it is not installed on the director?
For the Director to the non-router able server only works on ssh. How do I find out the NRPE agent reaching the Director
So my question just with NRPE plugin installed on the Director is good enough to pull data from other servers and send to Main Nagios XI?
Does executing the check_nrpe plugin to one of the servers work? (Run this from one of your servers and change the IP address to the director IP)

This is how you find out if NRPE can reach the director. Assuming you did install NRPE on the servers and the plugin is on the Director and opened port 5666.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.x.xxx
Please post the output of that command.
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Proxy agent for Network!!!

Post by ponnpr7 »

Where is Nagios XI installed since it is not installed on the director?
It is stand alone VM not in the Director.

Thanks,
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Proxy agent for Network!!!

Post by ponnpr7 »

I need a clarification in this matter I installed nrpe-3.2.1.tar.gz on the servers(not routeable) and I installed nagios-plugins-2.2.1.tar.gz on the director. Does this enough for to pull the metrics in the Standalone Nagios XI through NRDP.

Thanks,
Ravi
kyang

Re: Proxy agent for Network!!!

Post by kyang »

You would need to have the nagios-plugins on the other servers as well if you are collecting data from them.

Do you have NRPE or at least the check_nrpe plugin on your director?

It would be best to see if they can talk to each other first. If you get a response or running a plugin with NRPE works, then it should be enough to send data to XI.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.x.xxx
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Proxy agent for Network!!!

Post by ponnpr7 »

I'm getting this error at the server(not director)

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x
CHECK_NRPE: Error - Could not connect to x.x.x.: Connection reset by peer

Thanks,
Ravi
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Proxy agent for Network!!!

Post by cdienger »

Are you able to telnet to that machine:

telnet x.x.x.x 5666

The error indicates that there could be a firewall blocking the connection or that the server ip doesn't appear on the client's allowed_hosts list found in nrpe.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked