Commit b4e4d1ae by 黄辉荣

Update 120_hwcheck.sh

parent 775c7d3a
......@@ -19,7 +19,7 @@ Json_join(){
jstr=$jstr"{\"endpoint\": \"${endpoint}\", \"metric\": \"${metric}\", \"value\": $value,\"step\": ${step}, \"tags\": \"${tags}\",\"counterType\":\"${countertype}\",\"timestamp\": $(date +%s)},"
}
if [ "X$vendor" == "Xdell" ];then
test -f /usr/bin/hwinfo && value=2 || value=0
test -f /opt/dell/srvadmin/sbin/srvadmin-services.sh && value=2 || value=0
Json_join hw.status $value "$tags"
if [ $value -eq 2 ];then
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/dell/srvadmin/sbin:/opt/dell/srvadmin/bin
......
Markdown is supported
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