openfalcon 添加监控远程tcp端口异常情况监控代码
监控代码#!/usr/bin/env python#coding: utf-8import os, sys, reimport jsonimport requestsimport timeimport urllib2, base64from socket import *def checkTcpPort(host,port): result = int try: