Page 1 of 1

Error while executing check command

Posted: Wed Dec 04, 2019 1:37 am
by Pratapa
Hi,

When we execute the following check command we are getting following error.

[root@nagios libexec]# ./check_nrpe -H host1 -p 5666 -c CheckEventLog -a filter=new file=system MaxWarn=1 MaxCrit=1 filter-generated=\>5m filter+eventID=="10004" filter+eventType==error filter+eventSource==DCOM filter=in filter=all truncate=30
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).


[root@nagios]# ./check_nrpe -H host1 -p 5666
I (0.3.5.1 2008-09-24) seem to be doing fine...

[root@nagios]# ./check_nrpe -H host1
I (0.3.5.1 2008-09-24) seem to be doing fine...


I truncated the command and tried.

[root@nagios]# ./check_nrpe -H host1 -p 5666 -c CheckEventLog -a filter=new file=system
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).



What is wrong in the check command.

Please help me.

Regards,
Pratapa

Re: Error while executing check command

Posted: Wed Dec 04, 2019 5:53 pm
by tgriep
The NSClient++ agent you are running is very old and I recommend upgrading to a newer version if possible.

The error is caused be a missing option in the NSClient++ ini file so can you go to the following folder

Code: Select all

C:\Program Files\NSClient++
Get the nsc.ini file and upload it here so we can view it?

Re: Error while executing check command

Posted: Wed Dec 04, 2019 11:32 pm
by Pratapa
I replied to the user asking for details.

I will get back to you once I get the details from the user.

Re: Error while executing check command

Posted: Thu Dec 05, 2019 12:04 am
by Pratapa
Hi,

Please find the details

NSClient++ version is NSClientpp (Nagios) 0.3.5.2 2008-09-24 w32.

Uploaded nsc.ini file

Re: Error while executing check command

Posted: Thu Dec 05, 2019 10:13 am
by tgriep
That agent is 11 years old so I don't know if what I suggest will work.

Edit the nsc.ini file and under the [NRPE] section, change the following from

Code: Select all

;allow_arguments=0
;allow_nasty_meta_chars=0
to

Code: Select all

allow_arguments=1
allow_nasty_meta_chars=1
Save the change and restart NSClient++ and test the command.