Configuring service checks

Friends,

I am trying to run a check from the Nagios server, through another server to check a third server. This is because the second server is on same network as third server and would be best to run this way for less false alerts. So i have defined the command in the commands.cfg file on Nagios server, added entry to the nrpe.cfg file on second server to do check on third server but isnt working. Here are my entries:

commands.cfg on Nagios server:

‘check_nrpe_secondary’ command definition

define command{
command_name check_nrpe_secondary
command_line $USER1$/check_nrpe -H secondserver.domain -c $ARG1$ -a $ARG2$ $ARG3$
}

Then in host.cfg on Nagios server:

check_command check_nrpe_secondary!check_secondary_http!$HOSTADDRESS$!/index.html

Then on secondary server nrpe.cfg file i have:

command[check_secondary_http]=/usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -u $ARG1$