Windows下PowerShell監控Keepalived

一、背景   某數據庫服務器爲CentOS,想要監控Keepalived的VIP是否有問題,通過郵件進行報警,但這臺機器不能上外網,現在只能在Windows下通過PowerShell來完成發郵件預警。   二、腳本詳情 1.創建名爲:ping-ip.ps1的PS腳本,代碼如下所示: # ping 192.168.1.51 Test-Connection 192.168.1.51 -Count 2
相關文章
相關標籤/搜索