check_nrpe invalid packet type received from server

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
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

check_nrpe invalid packet type received from server

Post by HaschkeD »

Hi,
i use Nagios Core 3.2.3 and i get the error message like in the subject line.
This works fine till yesterday.
I have restart the server where the check runs….

This is my cmd:
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_vmfs_datastore_vmcbdf01 -t 60

And this the entry in the nsclient.ini:
check_vmfs_datastore_vmcbdf01=cmd /c echo scripts\check_vmfs_datastore_vmcbdf01.ps1 | PowerShell.exe -Command -

What can i do?

Regards
Dennis
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_nrpe invalid packet type received from server

Post by mcapra »

Here's a related KB article:
https://support.nagios.com/kb/article.php?id=518

There's a section with some troubleshooting steps specific to NSClient++ that you can attempt.

Also a related forums post:
https://support.nagios.com/forum/viewto ... =6&t=42993

It would also be useful to know which versions of the check_nrpe plugin and NSClient++ agent you're using.
Former Nagios employee
https://www.mcapra.com/
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: check_nrpe invalid packet type received from server

Post by mbellerue »

Thanks for jumping in, Matt!

HaschkeD, did the troubleshooting doc help with your issue? Were you able to get it resolved?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: check_nrpe invalid packet type received from server

Post by HaschkeD »

Hi,
i use NSClient 0.5.2035 on a Windows Server 2016.
I set this in the [/settings/NRPE/server] section on my nsclient.ini.

payload length=8192

Then this in my NagiosQL (see attachment).

Now i get this error:
No output returned from Plugin

Strange thing is that this works and i did no changes……..
On another server this works fine.
Attachments
Unbenannt.JPG
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: check_nrpe invalid packet type received from server

Post by HaschkeD »

I have implement the exact same script on another Windows 2016 Server.
Works fine….strage.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe invalid packet type received from server

Post by tgriep »

What version of the check_nrpe plugin are you using?

Depending on the version, they could not accept a large size payload as you specified.
Try setting the payload to 1024 and see if that works.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe invalid packet type received from server

Post by tgriep »

One more thing, add this under the NRPE settings in the nsclient.ini file.

Code: Select all

extended response = 1
Be sure to check out our Knowledgebase for helpful articles and solutions!
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: check_nrpe invalid packet type received from server

Post by HaschkeD »

We use NRPE Plugin V. 2.12.

Today i test it with the original Server...it works.
I change nothing...….strange but now it works.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe invalid packet type received from server

Post by tgriep »

That old version of the plugin, the buffer size was 2048.
Maybe NSClient++ just needed to be restarted.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked