From 7fe07acf0e6ec0ed76f30f0e237dce56d1a0a994 Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Tue, 21 Apr 2009 10:42:18 +0000 Subject: [PATCH] change process-service-perfdata => format has changed git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@7861 6bcd3966-0018-0410-8128-fd23d134de7e --- src/process-service-perfdata | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/process-service-perfdata b/src/process-service-perfdata index 3c22f16b0..92218d68b 100644 --- a/src/process-service-perfdata +++ b/src/process-service-perfdata @@ -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