Page 1 of 1

CHECK_NRPE: Invalid packet version received from server.

Posted: Wed Feb 17, 2021 12:48 am
by IT-OPS-SYS
hi team,

we have upgraded our nagios server to 5.8.1 last week and post that we could see a lot of messages in the client machine which stated that "CHECK_NRPE: Invalid packet version received from server."
version is 3.2.1

/var/log/messages

Feb 15 22:28:50 gvujss01 nrpe[104780]: INFO: SSL Socket Shutdown.
Feb 15 22:28:52 gvujss01 nrpe[104787]: Error: (use_ssl == true): Request packet version was invalid!
Feb 15 22:28:52 gvujss01 nrpe[104787]: Could not read request from client 149.24.38.140, bailing out...
Feb 15 22:28:52 gvujss01 nrpe[104787]: INFO: SSL Socket Shutdown.
Feb 15 22:29:12 gvujss01 nrpe[104831]: Error: (use_ssl == true): Request packet version was invalid!
Feb 15 22:29:12 gvujss01 nrpe[104831]: Could not read request from client 149.24.38.140, bailing out...
Feb 15 22:29:12 gvujss01 nrpe[104831]: INFO: SSL Socket Shutdown.
Feb 15 22:30:17 gvujss01 nrpe[104872]: Error: (use_ssl == true): Request packet version was invalid!
Feb 15 22:30:17 gvujss01 nrpe[104872]: Could not read request from client 149.24.38.140, bailing out...
Feb 15 22:30:17 gvujss01 nrpe[104872]: INFO: SSL Socket Shutdown.
Feb 15 22:30:37 gvujss01 nrpe[104898]: Error: (use_ssl == true): Request packet version was invalid!
Feb 15 22:30:37 gvujss01 nrpe[104898]: Could not read request from client 149.24.38.140, bailing out...

/usr/local/nagios/libexec/check_nrpe -H 149.24.164.24
CHECK_NRPE: Invalid packet version received from server.
I (0.5.1.44 2017-08-30) seem to be doing fine.

i have followed this: https://support.nagios.com/kb/article.php?id=516 but do we have any permanent workaround on this rather then editing the service with "-2"

Re: CHECK_NRPE: Invalid packet version received from server.

Posted: Wed Feb 17, 2021 1:35 pm
by dchurch
Does that error go away if you pass a -3 to the check?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -3
Or:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -3 -n

Re: CHECK_NRPE: Invalid packet version received from server.

Posted: Thu Feb 18, 2021 6:08 am
by IT-OPS-SYS
its going off but we cannot edit the changes to so many nrpe commands. any other feasible way of doing it

Re: CHECK_NRPE: Invalid packet version received from server.

Posted: Thu Feb 18, 2021 1:57 pm
by dchurch
You could edit the underlying service template. Nagios has a system of command templates that you could use to maintain ONE place where the whole "check_nrpe" command is defined, and applied to individual services via linkage.

More on object inheritance can be found here: https://assets.nagios.com/downloads/nag ... tance.html