Page 1 of 1

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

Posted: Fri Oct 27, 2017 3:07 am
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

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

Posted: Fri Oct 27, 2017 8:01 am
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.

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

Posted: Fri Oct 27, 2017 10:25 am
by dwhitfield
Thanks @mcapra!

OP, was it clear how to just send v2 packets? Did you have any questions about the options available?

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

Posted: Mon Oct 30, 2017 2:56 am
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]# 

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

Posted: Mon Oct 30, 2017 9:40 am
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!