Page 1 of 2

check_nrpe v3 Packets

Posted: Thu Dec 17, 2020 4:57 am
by andyb4u
Hi,

I have a question regards NRPE and version packets.

We are seeing these messages in /var/log/messages:

Code: Select all

check_nrpe: Remote x.x.x.x does not support Version 3 Packets
The check_nrpe plugin carrying out these checks is:

Code: Select all

NRPE Plugin for Nagios
Version: 3.2.1
The remote servers mentioned in the logs are all Linux servers with NRPE.

I understand from reading https://support.nagios.com/kb/article/n ... s-786.html
that this is expected behaviour for those servers running NRPE version less than 3. In these cases we should be able to stop these messages by either specifying the -2 when using the check_nrpe command or by upgrading NRPE on those server.

However we are also seeing this message logged for Linux servers which are running NRPE version 4.

I'm not sure why this is happening. Is this expected behaviour?

Re: check_nrpe v3 Packets

Posted: Thu Dec 17, 2020 6:25 pm
by benjaminsmith
Hi,
However, we are also seeing this message logged for Linux servers which are running NRPE version 4
The older plugin, XI server-side, should be backward compatible with the newer NRPE agent running on the remote hosts. I just tested this using an old version for XI running checks against an agent using NRPE 4, and it's working without the message.

Can you double-check which version of NREP those hosts are running?

Also, the latest version,4, of NRPE has had a change to the packets as well. More details in the changelog.
https://github.com/NagiosEnterprises/nr ... ANGELOG.md

Best Regards,
Benjamin

Re: check_nrpe v3 Packets

Posted: Mon Dec 21, 2020 5:01 am
by andyb4u
I checked and they are running NRPE 4.02

Re: check_nrpe v3 Packets

Posted: Mon Dec 21, 2020 2:27 pm
by benjaminsmith
Hi,
I checked and they are running NRPE 4.02
Can you let me know the exact name of the checks returning the messages, and send over the system profile, and I will try to test this out here.

Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button

Re: check_nrpe v3 Packets

Posted: Mon Jan 04, 2021 5:41 am
by andyb4u
Hi,

I've PM'd you the profile and info requested.

Regards,
Andy

Re: check_nrpe v3 Packets

Posted: Mon Jan 04, 2021 6:02 pm
by ssax
You will need to add the -2 for those Linux ones as well to stop it from logging that message.

Re: check_nrpe v3 Packets

Posted: Tue Jan 05, 2021 3:34 am
by andyb4u
I don't understand why we would need to do this.

We don't see this message for hosts using NRPE version 3.

My understanding is that a NRPE v3 client attempts to connect using a v3 packet by default. I assumed that a host running NRPE v4 would be able to handle this v3 packet.

Re: check_nrpe v3 Packets

Posted: Tue Jan 05, 2021 6:31 pm
by ssax
The checks will still work without it but in order to get rid of that logged message you need to add -2:

https://support.nagios.com/kb/article/n ... s-786.html

It's because of the way the devs wrote the functionality, you can see here it checks for v2 first:

https://github.com/NagiosEnterprises/nr ... pe.c#L2115

While I agree that you logically shouldn't have to pass it you still need to in order to get rid of the message in the logs.

On the Linux system, are you seeing this?

Code: Select all

Request packet version was invalid
Or this?

Code: Select all

does not support version 3/4 packets
Or this?

Code: Select all

does not support Version 3 Packets

Re: check_nrpe v3 Packets

Posted: Wed Jan 06, 2021 9:32 am
by andyb4u
We are seeing:

Code: Select all

Request packet version was invalid

Re: check_nrpe v3 Packets

Posted: Wed Jan 06, 2021 2:05 pm
by ssax
That's what I get as well, you'll need to pass the -2 to get rid of it from the XI server and the remote server logs. The checks still work but that message is logged on both without it.