- #!/bin/bash
- Cluster=`cnmon info | grep "Cluster 0"`
- info=${Cluster}
- b=${info//[A-Za-z :]/}
- temp=${b:1}
- echo "temp:$temp℃"
- if[ $temp -gt 85 ]
- then
- ehco "Temperature is too high, Portal algorithm service"
- docker stop gsd_cnstream_1
- exit 1
- else
- exit 0
- fi
|