Page 2 of 4

Re: Proxy agent for Network!!!

Posted: Wed Feb 14, 2018 9:46 am
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

Re: Proxy agent for Network!!!

Posted: Wed Feb 14, 2018 11:04 am
by ponnpr7
@npolovenko do I need to install on the Nagios XI as well.

Thanks,
Ravi

Re: Proxy agent for Network!!!

Posted: Wed Feb 14, 2018 1:08 pm
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.

Re: Proxy agent for Network!!!

Posted: Wed Feb 14, 2018 3:33 pm
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!!!

Re: Proxy agent for Network!!!

Posted: Thu Feb 15, 2018 10:43 am
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.

Re: Proxy agent for Network!!!

Posted: Fri Feb 16, 2018 3:03 pm
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,

Re: Proxy agent for Network!!!

Posted: Fri Feb 16, 2018 3:30 pm
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

Re: Proxy agent for Network!!!

Posted: Fri Feb 16, 2018 4:26 pm
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

Re: Proxy agent for Network!!!

Posted: Fri Feb 16, 2018 5:17 pm
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

Re: Proxy agent for Network!!!

Posted: Fri Feb 16, 2018 6:00 pm
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