#!/bin/bash a=`curl -o /dev/null -s -w %{http_code} "http://www.baidu.com"` if [ $a -eq 200 ] then echo ok else echo down| mail -s "mongod down" 825536458@qq.com fi
本文出自 “渐行渐远” 博客,请务必保留此出处http://825536458.blog.51cto.com/4417836/1908473
原文地址:http://825536458.blog.51cto.com/4417836/1908473