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
|
SERVICEDESC=$3
|
||||||
HARDSTATE=$4
|
HARDSTATE=$4
|
||||||
SERVICESTATE=$5
|
SERVICESTATE=$5
|
||||||
|
PERFDATA=$6
|
||||||
# Check if parameter 6 is defined
|
|
||||||
if test $6
|
|
||||||
then
|
|
||||||
PERFDATA=$6
|
|
||||||
else
|
|
||||||
PERFDATA=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Write data in perfdata file
|
# Write data in perfdata file
|
||||||
if test $PERFDATA != 0
|
/usr/bin/printf "%b" "$TIMET\t$HOSTNAME\t$SERVICEDESC\t$HARDSTATE\t$SERVICESTATE\t$PERFDATA\n" >> $PERFFILE
|
||||||
then
|
|
||||||
/usr/bin/printf "%b" "$TIMET\t$HOSTNAME\t$SERVICEDESC\t$HARDSTATE\t$SERVICESTATE\t$PERFDATA\n" >> $PERFFILE
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue