CHECK_NRPE: Error - Could not connect to 10.20.240.74: Conne

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
najohnson
Posts: 4
Joined: Mon Apr 13, 2020 2:07 pm

CHECK_NRPE: Error - Could not connect to 10.20.240.74: Conne

Post by najohnson »

I need some direction on how to get this error fixed i think its on the client side and not the nagios side
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error - Could not connect to 10.20.240.74: C

Post by tgriep »

We are going to need some details about the client.
What OS and release is it running?
What is the version of the Agent that is installed on the remote client?
What were the steps taken to install the agent?
Was port 5666 opened up on the firewall of the remote client and any devices between the systems?

You can also look at this article to troubleshoot the issue.
https://support.nagios.com/kb/article/c ... r-616.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
najohnson
Posts: 4
Joined: Mon Apr 13, 2020 2:07 pm

Re: CHECK_NRPE: Error - Could not connect to 10.20.240.74: C

Post by najohnson »

We are going to need some details about the client.
What OS and release is it running? windows server 2008 r2
What is the version of the Agent that is installed on the remote client? NSCP-0.4.4.23
What were the steps taken to install the agent? the one from the kb on nagios website
Was port 5666 opened up on the firewall of the remote client and any devices between the systems? yes
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error - Could not connect to 10.20.240.74: C

Post by tgriep »

I would guess that the NSCLient++ does not have all of the settings added to the configuration so the Nagios server cannot connect to it using the check_nrpe plugin.
I attached a default copy of the file to the ticket. All you have you have to do is to edit the file and in the allowed_hosts option, add the Nagios servers IP address.
Overwrite the existing file in this folder C:\Program Files\NSClient++ and restart the NSClient++ agent and see if that fixes the issue.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
najohnson
Posts: 4
Joined: Mon Apr 13, 2020 2:07 pm

Re: CHECK_NRPE: Error - Could not connect to 10.20.240.74: C

Post by najohnson »

Where does the password go in nagiosxi that is in the client ? do i have to reset up each device i have to monitor i pulled the files from nagios core to xi.

Thanks

Nate
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error - Could not connect to 10.20.240.74: C

Post by tgriep »

Just to let you know, the error you are receiving is for the check_nrpe plugin which does not use a password.

The plugin that uses a password is called check_nt and it you are not using the check_nt plugin, then you do not have to worry about the password in the nsclient.ini file and the configurations on the Nagios server.

If you are using the check_nt plugin, them the password, by default, it defined in the service checks arguments. Typically $ARG1$.
Since we do not know how the checks were setup on the Core system files you imported in to the XI server, they may be in a different argument or location.
Login to the XI GUI and go to the Core Config Manager > Services menu, find the service check and open it up and you should see it there.

The check_nt plugins option to specify the password is -s so look for it there.
-s, --secret=<password>
Password needed for the request
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked