difference from check_nrpe 3.2 and 2.15

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
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

difference from check_nrpe 3.2 and 2.15

Post by emi65 »

Hi

I'm using Nagios Core 4.2.1

I attemp to update the check_nrpe from 2.15 to 3.20 but I got some differece

for example
nrep 2.15
/usr/lib64/nagios/plugins/check_nrpe215 -H 10.209.32.199 -c CheckCounter -a "\\LogicalDisk(C:)\\Split IO/Sec" ShowAll MaxWarn=1 MaxCrit=2
OK: \LogicalDisk(C:)\Split IO/Sec: 0|'\LogicalDisk(C:)\Split IO/Sec'=0;1;2

nrpe 3.20
/usr/lib64/nagios/plugins/check_nrpe -H 10.209.32.199 -c CheckCounter -a "\\LogicalDisk(C:)\\Split IO/Sec" ShowAll MaxWarn=1 MaxCrit=2
Could not construct return packet in NRPE handler check client side (nsclient.log) logs...

in the nsclient log I found
2017-07-04 13:00:37: error:modules\NRPEListener\NRPEListener.cpp:317: Exception handling NRPE packet: Invalid packet version.
2017-07-04 13:00:38: error:modules\NRPEListener\NRPEListener.cpp:317: Exception handling NRPE packet: Invalid packet version.
2017-07-04 13:00:40: error:modules\NRPEListener\NRPEListener.cpp:317: Exception handling NRPE packet: Invalid packet version.


On the Server I'm using nsclient 0.3.9

Thanks
Emilio
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: difference from check_nrpe 3.2 and 2.15

Post by mcapra »

Check out this KB article regarding changes with NRPE v3 packet size:
https://support.nagios.com/kb/article/n ... ained.html

There's some considerations in there specific to NRPE v3 and NSClient++. If the changes suggested in that article do not solve the problem, you may consider updating the version of NSClient++ used on the remote machine.
Former Nagios employee
https://www.mcapra.com/
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

Re: difference from check_nrpe 3.2 and 2.15

Post by emi65 »

I used -2 option to check_nrpe comand and I solved the problem

thanks
Emilio
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: difference from check_nrpe 3.2 and 2.15

Post by tmcdonald »

Did you have any further (related) questions or are we okay to close this thread?
Former Nagios employee
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

Re: difference from check_nrpe 3.2 and 2.15

Post by emi65 »

yes
you can close it

thanks for all
Locked