Page 1 of 1

difference from check_nrpe 3.2 and 2.15

Posted: Tue Jul 04, 2017 6:06 am
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

Re: difference from check_nrpe 3.2 and 2.15

Posted: Wed Jul 05, 2017 8:21 am
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.

Re: difference from check_nrpe 3.2 and 2.15

Posted: Wed Jul 05, 2017 9:02 am
by emi65
I used -2 option to check_nrpe comand and I solved the problem

thanks
Emilio

Re: difference from check_nrpe 3.2 and 2.15

Posted: Wed Jul 05, 2017 9:51 am
by tmcdonald
Did you have any further (related) questions or are we okay to close this thread?

Re: difference from check_nrpe 3.2 and 2.15

Posted: Wed Jul 05, 2017 10:47 am
by emi65
yes
you can close it

thanks for all