We are migrating servers from Nagios core to NagiosXI. And on windows2008 server, for one of the check service below is the output in NagiosXI CLI:
- Code: Select all
[root@nagiosxiawsdev libexec]# ./check_nrpe -H <IP> -2 -c CheckFile2 -a max-dir-depth=0 path=\\\\PalsINTSQL001\\iERP85_Production pattern=IntuitiveERP_PalsINTSQL001_iERP85_Production.dbk filter+size=gt:10k MinWarn=0 MinCrit=0
IntuitiveERP_PALSINTSQL001_iERP85_Production.dbk|'found files'=1;0;0;
- Code: Select all
[root@nagiosxiawsdev libexec]# ./check_nrpe -2 -H <IP>
I (0.3.8.76 2010-05-27) seem to be doing fine...
But, I'm getting an error in NagiosXI GUI as shown below:
O/P with Private IP
- Code: Select all
[nagios@nagiosxiawsdev ~]$ /usr/local/nagios/libexec/check_nrpe -H <Private IP> -2 -t 30 -c CheckFile2 -a max-dir-depth=0 path=\\\\PalsINTSQL001\\iERP85_Production pattern=IntuitiveERP_PalsINTSQL001_iERP85_Production.dbk filter+size=gt:10k MinWarn=0 MinCrit=0
Check contains error. Check log for details (or enable show_errors in nsc.ini)
O/P with Public IP
- Code: Select all
[nagios@nagiosxiawsdev ~]$ /usr/local/nagios/libexec/check_nrpe -H <Public IP> -2 -t 30 -c CheckFile2 -a max-dir-depth=0 path=\\\\PalsINTSQL001\\iERP85_Production pattern=IntuitiveERP_PalsINTSQL001_iERP85_Production.dbk filter+size=gt:10k MinWarn=0 MinCrit=0
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
And as checked-in logs, we got the below errors:
- Code: Select all
localhost check_nrpe: Remote <Private IP> does not support version 3/4 packets
localhost check_nrpe: Remote <pub IP> does not support version 3/4 packets
On NagiosXI Machine, i have installed nrpe with passing
and in nrpe.cfg modified./configure --enable-command-args
dont_blame_nrpe=1
And on remote machine in file NSC.INI, I have made the below changes :
[NRPE]
allow_arguments=1
payload length=8192
Could you guys Please suggest your inputs on this