change process-service-perfdata

=> format has changed

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@7861 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2009-04-21 10:42:18 +00:00
parent e9a8958a9d
commit 7fe07acf0e
1 changed files with 2 additions and 12 deletions

View File

@ -48,17 +48,7 @@ HOSTNAME=$2
SERVICEDESC=$3
HARDSTATE=$4
SERVICESTATE=$5
# Check if parameter 6 is defined
if test $6
then
PERFDATA=$6
else
PERFDATA=0
fi
PERFDATA=$6
# Write data in perfdata file
if test $PERFDATA != 0
then
/usr/bin/printf "%b" "$TIMET\t$HOSTNAME\t$SERVICEDESC\t$HARDSTATE\t$SERVICESTATE\t$PERFDATA\n" >> $PERFFILE
fi
/usr/bin/printf "%b" "$TIMET\t$HOSTNAME\t$SERVICEDESC\t$HARDSTATE\t$SERVICESTATE\t$PERFDATA\n" >> $PERFFILE