check_nrpe invalid packet type received from server

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_nrpe invalid packet type received from server

Postby HaschkeD » Thu Oct 31, 2019 5:13 am

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

Re: check_nrpe invalid packet type received from server

Postby mcapra » Thu Oct 31, 2019 11:46 am

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:
viewtopic.php?f=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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3584
Joined: Thu May 05, 2016 3:54 pm

Re: check_nrpe invalid packet type received from server

Postby mbellerue » Thu Oct 31, 2019 3:10 pm

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!
User avatar
mbellerue
 
Posts: 766
Joined: Fri Jul 12, 2019 11:10 am

Re: check_nrpe invalid packet type received from server

Postby HaschkeD » Mon Nov 04, 2019 9:42 am

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

Re: check_nrpe invalid packet type received from server

Postby HaschkeD » Tue Nov 05, 2019 8:51 am

I have implement the exact same script on another Windows 2016 Server.
Works fine….strage.
HaschkeD
 
Posts: 40
Joined: Tue Feb 02, 2016 8:35 am

Re: check_nrpe invalid packet type received from server

Postby tgriep » Tue Nov 05, 2019 5:54 pm

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.
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!
User avatar
tgriep
Madmin
 
Posts: 8340
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe invalid packet type received from server

Postby tgriep » Tue Nov 05, 2019 5:58 pm

One more thing, add this under the NRPE settings in the nsclient.ini file.
Code: Select all
extended response = 1
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!
User avatar
tgriep
Madmin
 
Posts: 8340
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe invalid packet type received from server

Postby HaschkeD » Wed Nov 06, 2019 7:24 am

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

Re: check_nrpe invalid packet type received from server

Postby tgriep » Wed Nov 06, 2019 11:51 am

That old version of the plugin, the buffer size was 2048.
Maybe NSClient++ just needed to be restarted.
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!
User avatar
tgriep
Madmin
 
Posts: 8340
Joined: Thu Oct 30, 2014 9:02 am


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 19 guests

cron