NRPE Arguments

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
Cristhian_Plaza
Posts: 62
Joined: Thu Oct 27, 2016 2:43 pm

NRPE Arguments

Post by Cristhian_Plaza »

When I send arguments to NRPE, I got this answer "CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected)."

Command

Code: Select all

define command {
        command_name    check_xvda1
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c "check_xvda1" -a $ARG2$ $ARG3$ $ARG4$
}
Service

Code: Select all

define service {
        use                     generic-service
        host_name               Wikinovum
        service_description     Disco /dev/xvda1
        check_command           check_xvda1!20%!10%!/dev/xvda1
}
On remote machine

Code: Select all

command[check_xvda1]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Arguments

Post by scottwilkerson »

Change the command to the following

Code: Select all

define command {
        command_name    check_xvda1
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c "check_xvda1" -a '$ARG1$ $ARG2$ $ARG3$'
}
Then restart nagios

Code: Select all

service nagios restart
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked