#!/usr/bin/envpython#-*-coding:utf-8-*-importsocket,sysfromoptparseimportOptionParserstat_ok=0stat_warning=1stat_critical=2stat_unknown=3defcheck_port(address,port):s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)s.settimeout(3)try:s.connect((address,port..
分类:
编程语言 时间:
2014-12-15 22:02:17
阅读次数:
610