No Problem getting im just glad that at least someone can help!
ok i have taken a look deeper into the logs etc and sent a test send_nsca packet, this worked and went across fine. but when i look in the nagios.log file the only nsca packet received was the test one so it seems like the packets arent getting sent from the remote client to the central one automatically.
i have also checked the nagios.log on the remote agent and this one doesnt show up as any send_nsca checks being run.
i have checked the cfg file to make sure the oscp_command is set to submit_check_result and it is, it is also enabled :S i am getting rather confused now as to why when a service is checked on the remote client the oscp_command isnt being executed.
do i need to add the submit_check_result to the host configuration??
here is my submit_check_result script:
# $1 = host_name (Short name of host that the service is
# associated with)
# $2 = svc_description (Description of the service)
# $3 = state_string (A string representing the status of
# the given service - "OK", "WARNING", "CRITICAL"
# or "UNKNOWN")
# $4 = plugin_output (A text string that should be used
# as the plugin output for the service checks)
# Convert the state string to the corresponding return code
case "$3" in
# pipe the service check info into the send_nsca program, which
# in turn transmits the data to the nsca daemon on the central
# monitoring server
printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/local/nagios/bin/send_nsca -H 22.214.171.124 -c /usr/local/nagios/etc/send_nsca.cfg