CHECK_NRPE: Invalid packet version received from server.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

CHECK_NRPE: Invalid packet version received from server.

Post by scharft »

hi,

all of our nrpe check's respond with status information: Invalid packet version received from server.
The status itself looks good.
On the XI server is Version: 4.0.3 installed.
All our clients using nsclient 0.5.2 or 0.4.4.19.

i have tried to execute check_nrpe with "-2" it doesn't work for us.

any ideas?

best Regards
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by cdienger »

Edit the check_nrpe command(or which ever command your config is using) and try this format:

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -2 -t 30 -c $ARG1$ $ARG2$
I've noticed that the check_nrpe plugin expects the -2 or -3 option prior to the -c command and can throw an error otherwise.

Please provide the full command that you are running along with its output if the above doesn't help you to resolve the issue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by scharft »

Hi,

if i use the command you provided without any addtional arguments i got:
[nagios@atvienag001 ~]$ /usr/local/nagios/libexec/check_nrpe -H atviectxpcm851.eumfgat.eumfg.immuno.baxter.com -2 -t 90 -c
NRPE Plugin for Nagios
Version: 4.0.3
Copyright (c) 2009-2017 Nagios Enterprises
1999-2008 Ethan Galstad (nagios@nagios.org)
Last Modified: 2020-04-28
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: OpenSSL 0.9.6 or higher required

If i use it with the arguments we need for:
[nagios@atvienag001 ~]$ /usr/local/nagios/libexec/check_nrpe -H atviectxpcm851.eumfgat.eumfg.immuno.baxter.com -t 90 -c check_powerstate -a $HOSTADDRESS$
CHECK_NRPE: Invalid packet version received from server.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by cdienger »

What is the result of:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H atviectxpcm851.eumfgat.eumfg.immuno.baxter.com -2 -t 90 -c check_powerstate -a $HOSTADDRESS$
Also, are you replacing $HOSTADDRESS$ with a valid host address ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by scharft »

it is independence which variable or command i useb, the error message ist the same but to answer your question, the variable will be replaced by the fqdn.

[nagios@atvienag001 ~]$ /usr/local/nagios/libexec/check_nrpe -H atviectxpcm851.eumfgat.eumfg.immuno.baxter.com -t 90 -c check_powerstate
CHECK_NRPE: Invalid packet version received from server.


[nagios@atvienag001 ~]$ /usr/local/nagios/libexec/check_nrpe -H atviectxpcm851.eumfgat.eumfg.immuno.baxter.com -t 90 -c $_HOSTCTX_DDC$
CHECK_NRPE: Invalid packet version received from server.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by cdienger »

Run this on the command line:

Code: Select all

su - nagios
/usr/local/nagios/libexec/check_nrpe -H atviectxpcm851.eumfgat.eumfg.immuno.baxter.com -2 -t 90 -c check_powerstate
provide a screenshot of the results.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by scharft »

this would be the correct format of the command

./check_nrpe -H atviectxddc051.eumfgdc.eumfg.immuno.baxter.com -2 -t 90 -c check_powerstate -a atviectxrdc001.eumfgdc.eumfg.immuno.baxter.com

result:

[root@atvienag001 libexec]# ./check_nrpe -H atviectxddc051.eumfgdc.eumfg.immuno.baxter.com -2 -t 90 -c check_powerstate -a atviectxrdc001.eumfgdc.eumfg.immuno.baxter.com
Powerstate seems to be OK

your example:
./check_nrpe -H atviectxpcm851.eumfgat.eumfg.immuno.baxter.com -2 -t 90 -c check_powerstate
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by cdienger »

Okay, so now we know that the command will work if given the proper arguments. Please provide a copy of the ccm database so I can take a closer look at the current configuration. Send it to me via a private message.

If the default database is being used then this can be done from the command line with:

Code: Select all

mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
If the database has been offloaded to another machine then you'll need to modify the commands slightly to look like:

Code: Select all

mysqldump -h database_host_ip -uusername -ppassword nagiosql > nagiosql.sql​​
Please provide the nagiosql.sql that is created.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: CHECK_NRPE: Invalid packet version received from server.

Post by scharft »

Hi,

thank you the issue is resolved.

best regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Invalid packet version received from server.

Post by scottwilkerson »

scharft wrote:Hi,

thank you the issue is resolved.

best regards
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked