Skip to content
Snippets Groups Projects
Commit 631698cf authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

changing test and email in template

parent dd20b043
No related branches found
No related tags found
1 merge request!460Upcoming maintenance
#!/bin/bash
exitCode=[[ "3" == `gluster volume heal gv info | grep -c "Number of entries: 0"` ]]
healinfo=`gluster volume heal gv info | grep -c "Number of entries: 0"`
HEADER="glusterfs preventing start of slurmctld on `hostname`"
MAILTO="{{ EMAIL_DEST }}"
echo $exitCode
if [ $exitCode -eq 0 ]
MAILTO={{ admin_email }}
if [ $healinfo != "4" ]
then
EmailBody="glusterfs preventing start of slurmctld on `hostname` on `date` \ncheck via gluster volume heal gv info"
echo -e "$EmailBody" | mail -s "$HEADER" "$MAILTO"
fi
return $exitCode
\ No newline at end of file
[[ $healinfo == "3" ]]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment