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:
parent
e9a8958a9d
commit
7fe07acf0e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue