2013-12-14 45 views

回答

0

我最終做的是使用下面的monit內置的ping。

check host <%= mongoHost %> with address <%= mongoHost %> 
     if failed icmp type echo count 3 with timeout 5 seconds 
       then alert