Page 1 of 1
CHECK_NRPE: Invalid packet version received from server.
Posted: Thu Oct 22, 2020 4:31 am
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
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Fri Oct 23, 2020 10:18 am
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.
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Tue Nov 17, 2020 1:34 am
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 (
[email protected])
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.
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Tue Nov 17, 2020 2:09 pm
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 ?
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Wed Nov 25, 2020 4:24 am
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.
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Wed Nov 25, 2020 5:33 pm
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.
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Tue Dec 01, 2020 7:44 am
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
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Wed Dec 02, 2020 11:51 am
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.
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Mon Dec 14, 2020 2:36 am
by scharft
Hi,
thank you the issue is resolved.
best regards
Re: CHECK_NRPE: Invalid packet version received from server.
Posted: Mon Dec 14, 2020 8:36 am
by scottwilkerson
scharft wrote:Hi,
thank you the issue is resolved.
best regards
Great!
Locking thread