upgrade nrpe v2.14 to v3.2.1 on centos 6x machines

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
trinetra
Posts: 7
Joined: Tue Sep 12, 2017 1:37 am

upgrade nrpe v2.14 to v3.2.1 on centos 6x machines

Post by trinetra »

Hi all ,

Recently i have build a new nagios core 4.3.4 server (centos 6.9) and i see a lot of entries in syslog as below. The client servers
being monitored by this nagios core 4.3.4 are still on nrpe 2.14. Is this something serious - or can be neglected ?
I was thinking of upgrading the 2.14 nrpe on the clients to the latest 3.2.1 nrpe . And not sure if there is a proper way to do this ...
to upgrade directly 2.14 nrpe to 3.2.1 using yum/source/etc...seeking your advice. Thanks.

Code: Select all

[root@m246nagios log]# tail -f messages
Oct 27 16:01:56 m246nagios check_nrpe: Remote 10.0.0.54 does not support Version 3 Packets
Oct 27 16:01:57 m246nagios check_nrpe: Remote 10.0.1.55 does not support Version 3 Packets
Oct 27 16:01:59 m246nagios check_nrpe: Remote 10.0.1.71 does not support Version 3 Packets
Oct 27 16:01:59 m246nagios check_nrpe: Remote 10.0.0.70 does not support Version 3 Packets
Oct 27 16:02:00 m246nagios check_nrpe: Remote 10.0.1.242 does not support Version 3 Packets
Oct 27 16:02:02 m246nagios check_nrpe: Remote 10.0.1.117 does not support Version 3 Packets
Oct 27 16:02:02 m246nagios check_nrpe: Remote 10.0.1.233 does not support Version 3 Packets
Oct 27 16:02:02 m246nagios check_nrpe: Remote 10.0.1.31 does not support Version 3 Packets
Oct 27 16:02:06 m246nagios check_nrpe: Remote 10.0.0.6 does not support Version 3 Packets
Oct 27 16:02:06 m246nagios check_nrpe: Remote 10.0.0.29 does not support Version 3 Packets
Oct 27 16:02:07 m246nagios check_nrpe: Remote 10.0.0.132 does not support Version 3 Packets
Oct 27 16:02:08 m246nagios check_nrpe: Remote 10.0.0.4 does not support Version 3 Packets
Oct 27 16:02:08 m246nagios check_nrpe: Remote 10.0.0.28 does not support Version 3 Packets
Oct 27 16:02:09 m246nagios check_nrpe: Remote 10.0.0.2 does not support Version 3 Packets
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: upgrade nrpe v2.14 to v3.2.1 on centos 6x machines

Post by mcapra »

From:
https://support.nagios.com/kb/article/n ... sions.html
When the NRPE v3 client first establishes a connection, it tries with the v3 packet. This results in the older client rejecting the request. Upon receiving the rejected request the plugin will then attempt to connect with the v2 packet. This request will succeed however errors are produced in the log on the client and the Nagios server.

The options you have to stop the errors are:
  • Upgrade the client to v3 -- This will stop the errors
  • Force the plugin to send v2 packets -- Using the -2 argument will force the plugin to connect with v2 packets -- /usr/local/nagios/libexec/check_nrpe -2 -H centos12
Shy several thousands of hosts being checked via NRPE, I don't think this is a major problem. However, you're essentially checking everything twice: Once with a v3 packet then again with a v2 packet.
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: upgrade nrpe v2.14 to v3.2.1 on centos 6x machines

Post by dwhitfield »

Thanks @mcapra!

OP, was it clear how to just send v2 packets? Did you have any questions about the options available?
trinetra
Posts: 7
Joined: Tue Sep 12, 2017 1:37 am

Re: upgrade nrpe v2.14 to v3.2.1 on centos 6x machines

Post by trinetra »

hi macpra ,

thanks , the solution works ...i have edited the commands.cfg file and added ver 2 checks manually. kindly mark this as solved. thanks again.

Code: Select all

[root@m246nagios etc]# cat commands.cfg|grep check_nrpe
# 'check_nrpe' command definition
	command_name    check_nrpe
	command_line    /usr/local/nagios/libexec/check_nrpe -2 -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$
[root@m246nagios etc]# 
kyang

Re: upgrade nrpe v2.14 to v3.2.1 on centos 6x machines

Post by kyang »

Sounds great! I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!
Locked