You did not read this important bit of information in my last post:rlinux57 wrote:Still getting error.
I have define command in nagios server as:Code: Select all
define command{ command_name check_testaccounts command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_testaccounts $ARG1$ $ARG2$ }
So your command definition needs to be:Box293 wrote:NOTE: To send arguments you must use the -a flag.Code: Select all
/usr/local/nagios/libexec/check_nrpe -c check_testaccounts -H spelljob.com -a 1 2
Code: Select all
define command{
command_name check_testaccounts
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_testaccounts -a $ARG1$ $ARG2$
}