CHECK_NRPE: Receive header underflow - only 0 bytes received
CHECK_NRPE: Receive header underflow - only 0 bytes received
I have Nagios Core v4.3.4 installed on a VM running Ubuntu v16.04.
I have the NSClient++ Monitoring Agent installed on several Windows Server 2012 R2 Standard machines.
The issue I'm having is that one of the Servers is returning
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected) for one of the services being monitored.
No issues with the other services being monitored. nsclient.ini is identical to one on another server monitoring that same service.
I'm not sure where to begin trouble-shooting. nsclient.ini is attached. Please let me know if other files are needed.
Thanks!
I have the NSClient++ Monitoring Agent installed on several Windows Server 2012 R2 Standard machines.
The issue I'm having is that one of the Servers is returning
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected) for one of the services being monitored.
No issues with the other services being monitored. nsclient.ini is identical to one on another server monitoring that same service.
I'm not sure where to begin trouble-shooting. nsclient.ini is attached. Please let me know if other files are needed.
Thanks!
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
Can you share what service is being monitored that is causing this?
Can you share the command you are using?
Do all of the Windows servers have the same services running?
Can you share the command you are using?
Do all of the Windows servers have the same services running?
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
Thanks Scott.
Monitor Loader errors is the service being monitored.
define service{
use generic service
host_name per310-02,per310-03
service_description Monitor Loader errors
check_command check_nrpe!check_eventlog -a "filter=provider = 'SLMD UV Monitor Loader' and id = 0 and message like 'Config
socket blocked' OR message like 'Inconsistent state'
}
I have two other servers monitoring the same services. The server in question is part of a host group with 11 other servers.
Those servers do have a "core" of services that they are monitoring plus one that is for a particular server only
Monitor Loader errors is the service being monitored.
define service{
use generic service
host_name per310-02,per310-03
service_description Monitor Loader errors
check_command check_nrpe!check_eventlog -a "filter=provider = 'SLMD UV Monitor Loader' and id = 0 and message like 'Config
socket blocked' OR message like 'Inconsistent state'
}
I have two other servers monitoring the same services. The server in question is part of a host group with 11 other servers.
Those servers do have a "core" of services that they are monitoring plus one that is for a particular server only
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
I think you are missing a " at the end of your check_command, try:
Code: Select all
define service{
use generic service
host_name per310-02,per310-03
service_description Monitor Loader errors
check_command check_nrpe!check_eventlog -a "filter=provider = 'SLMD UV Monitor Loader' and id = 0 and message like 'Config socket blocked' OR message like 'Inconsistent state'"
}
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
I verified that there is a " at the end of my check_command.
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
How did you install NRPE on the Ubuntu machine? It's possible that the --enable-command-args flag hasn't been used, so you are not able to pass arguments. You may try to remove your current version of NRPE and install from source. For more information on the topic, see this:
https://github.com/NagiosEnterprises/nrpe/issues/92
https://github.com/NagiosEnterprises/nrpe/issues/92
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
I'll read more on the topic.
What is puzzling me is that the issue is with only one service on one server. No other nrpe issues...
What is puzzling me is that the issue is with only one service on one server. No other nrpe issues...
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
Do you have other checks (that work), in which you pass arguments?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
I have other check_nrpe commands with arguments that function as expected.
The one in question, functions on one server, but not another.
The one in question, functions on one server, but not another.
Re: CHECK_NRPE: Receive header underflow - only 0 bytes rece
Hmm, in this case your NRPE must be compiled with --enable-command-args, and the issue must be caused by something else.I have other check_nrpe commands with arguments that function as expected.
Can you run the following commands on the Ubuntu box, and show the output?
Code: Select all
ip addr
/usr/local/nagios/bin/nrpe
/usr/local/nagios/libexec/check_nrpe -H <windows server ip>
/usr/local/nagios/libexec/check_nrpe -H <windows server ip> -p 5666 -c CheckMem -a MaxWarn=80% MaxCrit=90% ShowAll type=physical
Be sure to check out our Knowledgebase for helpful articles and solutions!