check_nrpe different results than script deb x64

I am having this issue only on the x64 version of nrpe

When the remote server is booted I have to manually restart xinetd/nrpe in order to get the correct results.
for example:

running the script manually the results are correct:

dbs:/home/nagios/libexec# ./check_sar_SAN
sda_rs=0.21;sda_ws=5822.43;sda_await=0.09;sda_util=1.78; sdc_rs=730.13;sdc_ws=2207.98;sdc_await=12.89;sdc_util=20.13; sde_rs=295.42;sde_ws=167.05;sde_await=13.76;sde_util=3.81;idle=93.73|sda_rs=0.21;sda_ws=5822.43;sda_await=0.09;sda_util=1.78; sdc_rs=730.13;sdc_ws=2207.98;sdc_await=12.89;sdc_util=20.13; sde_rs=295.42;sde_ws=167.05;sde_await=13.76;sde_util=3.81;idle=93.73

and running via check_nrpe the variables are shifted to the left and therefore throws everything off.

dbs:/home/nagios/libexec# ./check_nrpe -H localhost -c check_iostat_san
202.66_rs=5822.43;202.66_ws=28.73;202.66_await=0.09;202.66_util=; 167.83_rs=2207.98;167.83_ws=17.51;167.83_await=1.20;167.83_util=; 22.94_rs=167.05;22.94_ws=20.16;22.94_await=1.66;22.94_util=;idle=|202.66_rs=5822.43;202.66_ws=28.73;202.66_await=0.09;202.66_util=; 167.83_rs=2207.98;167.83_ws=17.51;167.83_await=1.20;167.83_util=; 22.94_rs=167.05;22.94_ws=20.16;22.94_await=1.66;22.94_util=;idle=

The script is as follows:
#####################################
#!/bin/bash
#set -x
SAR_ALL=$(sar -dp |grep “sda|sdc|sde”| tail -6| head -3 | awk ‘{print $3,$5,$6,$9,$11}’ | while read x a b c d ;
do
SAR=$(echo “$x”_rs="$a;$x"_ws="$b;$x"_await="$c;$x"_util="$d;")
echo $SAR
done)
CPU_idle=$(sar -p | tail -2 | head -1 | awk ‘{print $9}’)

SAR_RES="$SAR_ALL"idle="$CPU_idle|$SAR_ALL"idle="$CPU_idle"
echo $SAR_RES
exit 0
####################################

REMOTE Server

nrpe version:
NRPE - Nagios Remote Plugin Executor
Copyright © 1999-2006 Ethan Galstad ([email protected])
Version: 2.5.1
Last Modified: 04-09-2006
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required

Debian ETCH
uname -a
Linux ux-dbs02-atl2 2.6.18-6-amd64 #1 SMP Thu Dec 25 21:08:54 UTC 2008 x86_64 GNU/Linux

dbs:/home/nagios/libexec# cat /etc/xinetd.d/nrpe
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
groups = yes
group = nagios
server = /usr/sbin/nrpe
server_args = -c /home/nagios/etc/nrpe.cfg -i
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 10.52.29.20
}

####################################

I have the same issue on another x64 server running the name version but using a slightly different script:

####################################

#!/bin/bash

IO_stat=($(sar -d | tail -2 | head -1 | awk ‘{print $5,$6,$9,$11}’))
CPU_idle=$( sar -p | tail -2 | head -1 | awk ‘{print $9}’)

echo “rs=${IO_stat[0]};ws=${IO_stat[1]};await=${IO_stat[2]};util=${IO_stat[3]};idle=$CPU_idle|rs=${IO_stat[0]};ws=${IO_stat[1]};await=${IO_stat[2]};util=${IO_stat[3]};idle=$CPU_idle”

####################################

Entries from nrpe.cfg

command[check_iostat]=/usr/local/nagios/libexec/check_sar.sh
command[check_iostat_san]=/usr/local/nagios/libexec/check_sar_SAN

###################################

As I mentioned above this ONLY happens after a reboot , to fix the issue I must manually restart xinetd/nrpe.

Is this a known bug?

Thanks in advance !

–S