Commit 309ca8ab authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
Browse files

added a timeout to beegfs command

parent 61a3390d
......@@ -58,10 +58,15 @@ while IFS== read -r key value; do
done < "$BGFSLOGFILE"
CURTS=$(date +%s)
beegfs_command="beegfs-ctl --clientstats --names --nodetype=storage --interval=0 --filter=$BGFSHOSTNAME"
beegfs_command="timeout -k 1 1 beegfs-ctl --clientstats --names --nodetype=storage --interval=0 --filter=$BGFSHOSTNAME"
data=$( $beegfs_command | grep $BGFSHOSTNAME)
debug "Output of BeeGFS: $data"
if [ "$data" == "" ]; then
debug "Output is empty. Exiting"
exit 0;
fi
# Parse the current measurements
debug "Parsing current measurments"
prev_is_val=false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment