Remove --conf argument
This commit is contained in:
1 parent
33882d5455
commit
1024b3264b
5 files changed
+16
-16
No files matched your search
+7
-7
@@ -18,13 +18,13 @@ if [ $(which sinfo) ]; then
|
||||
# Slurm node state
|
||||
slurm_node_state=$(sinfo --nodes=$hn --Node --noheader --format='%t' | head -n1)
|
||||
if [ "$slurm_node_state" ]; then
|
||||
gmetric --name="slurm_node_state" --title="Slurm node state" --value="$(xml_escape "$slurm_node_state")" --type="string" --group="slurm" --conf=$conf
|
||||
gmetric --name="slurm_node_state" --title="Slurm node state" --value="$(xml_escape "$slurm_node_state")" --type="string" --group="slurm"
|
||||
fi
|
||||
|
||||
# Slurm reason for being down
|
||||
slurm_down_reason=$(sinfo --nodes=$hn --Node --noheader --format='%E' | head -n1)
|
||||
if [ "$slurm_down_reason" ]; then
|
||||
gmetric --name="slurm_down_reason" --title="Slurm node down reason" --value="$(xml_escape "$slurm_down_reason")" --type="string" --group="slurm" --conf=$conf
|
||||
gmetric --name="slurm_down_reason" --title="Slurm node down reason" --value="$(xml_escape "$slurm_down_reason")" --type="string" --group="slurm"
|
||||
fi
|
||||
|
||||
# Slurm partition
|
||||
@@ -33,7 +33,7 @@ if [ $(which sinfo) ]; then
|
||||
done <<< $(sinfo --nodes=$hn --Node --noheader --format='%R')
|
||||
slurm_partition=${slurm_partition%,}
|
||||
if [ $slurm_partition ]; then
|
||||
gmetric --name="slurm_partition" --title="Slurm partition" --value="$(xml_escape "$slurm_partition")" --type="string" --group="slurm" --conf=$conf
|
||||
gmetric --name="slurm_partition" --title="Slurm partition" --value="$(xml_escape "$slurm_partition")" --type="string" --group="slurm"
|
||||
fi
|
||||
|
||||
# Slurm jobs on this node
|
||||
@@ -51,10 +51,10 @@ if [ $(which sinfo) ]; then
|
||||
slurm_job_user=${slurm_job_user%,}
|
||||
slurm_job_time_elapsed=${slurm_job_time_elapsed%,}
|
||||
|
||||
gmetric --name="slurm_job_id" --title="Slurm running job ID" --value="$(xml_escape "$slurm_job_id")" --type="string" --group="slurm" --conf=$conf
|
||||
gmetric --name="slurm_job_name" --title="Slurm running job name" --value="$(xml_escape "$slurm_job_name")" --type="string" --group="slurm" --conf=$conf
|
||||
gmetric --name="slurm_job_user" --title="Slurm running job user" --value="$(xml_escape "$slurm_job_user")" --type="string" --group="slurm" --conf=$conf
|
||||
gmetric --name="slurm_job_time_elapsed" --title="Slurm running job elapsed time" --value="$(xml_escape "$slurm_job_time_elapsed")" --type="string" --group="slurm" --conf=$conf
|
||||
gmetric --name="slurm_job_id" --title="Slurm running job ID" --value="$(xml_escape "$slurm_job_id")" --type="string" --group="slurm"
|
||||
gmetric --name="slurm_job_name" --title="Slurm running job name" --value="$(xml_escape "$slurm_job_name")" --type="string" --group="slurm"
|
||||
gmetric --name="slurm_job_user" --title="Slurm running job user" --value="$(xml_escape "$slurm_job_user")" --type="string" --group="slurm"
|
||||
gmetric --name="slurm_job_time_elapsed" --title="Slurm running job elapsed time" --value="$(xml_escape "$slurm_job_time_elapsed")" --type="string" --group="slurm"
|
||||
fi
|
||||
|
||||
fi
|
||||
Reference in new issue
Block a user