Sorry for dumb question. NRPE vs check_nt

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bbdabb
Posts: 2
Joined: Wed Apr 08, 2020 11:19 am

Sorry for dumb question. NRPE vs check_nt

Post by bbdabb »

So it looks like Nagios uses check_nt 12489 for windows machines and NRPE 5666 for Linux. I'm just getting into this so I imagine there's way more to it, but I don't think it applies to my question.

I just fought to get 12489 opened and was wondering if I could have NRPE use 12489 on the Linux agents. Again NRPE for Linux and check_nt for windows
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Sorry for dumb question. NRPE vs check_nt

Post by jbrunkow »

That's totally not a dumb question! :)

We also have a cross platform agent called NCPA that can run on Windows, Mac, or Linux.

Yes, you can change the port for NRPE. You will probably have to change the ports specified in the /etc/xinet.d/nrpe , /etc/services , /usr/local/nagios/etc/nrpe.cfg files on your host machine.

Then, on your Nagios XI server, you will need to change the port of that check with the -p flag in the command.

Does that help? Please let me know if I can provide further clarification.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
bbdabb
Posts: 2
Joined: Wed Apr 08, 2020 11:19 am

Re: Sorry for dumb question. NRPE vs check_nt

Post by bbdabb »

That's great news. Is there a way on Nagios XI to have NRPE checks default to 12489? Again I am talking server side. I know on the client side I will need to update what port I want it to listen on.

I'm still a little confused about when I'm adding a host where I would add the -p 12489. I know I will need to add it to the ARG on all the checks on the one host we have already added.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Sorry for dumb question. NRPE vs check_nt

Post by lmiltchev »

The "default" port for check_nrpe is 5666. You can view the plugin's usage by running the following command from the command line:

/usr/local/nagios/libexec/check_nrpe -h

This is the port section:
-p, --port=PORT The port on which the daemon is running (default=5666)
So, if you don't change your "default" check_nrpe command from this:

Code: Select all

define command {
    command_name    check_nrpe
    command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
to this:

Code: Select all

define command {
    command_name    check_nrpe
    command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -p 12489 -c $ARG1$ $ARG2$
}
the "default" port will be used.

You can change your command in Nagios XI by going to the CCM > Commands > check_nrpe > Edit.

Add the port, save, and apply configuration. Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked