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
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;
# Parse the current measurements
debug "Parsing current measurments"
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