def __init__(self, protocol, path, content, check_mode, value=None): value = WebCheck.DEFAULT_VALUES[check_mode] if value is None else value ServiceCheck.__init__(self, value=value) self.protocol = protocol self.path = path self.content = content self.check_mode = check_mode
def __init__(self, hostname, ip, strict_match=True, value=1): ServiceCheck.__init__(self, value=value) self.hostname = hostname self.ip = ip self.strict_match = strict_match if not ip and strict_match: raise ValueError('strict match requires an IP')
def __init__(self, host, value=2): ServiceCheck.__init__(self, value=value) self.host = host
def __init__(self, expected_info, value=10): ServiceCheck.__init__(self, value=value) self.expected_info = expected_info
def __init__(self, protocol, value=2): ServiceCheck.__init__(self, value=value) self.protocol = protocol
def __init__(self, database, table, value=10, credentials=None): ServiceCheck.__init__(self, value=value, credentials=credentials) self.database = database self.table = table
def __init__(self, command='whoami', value=5, credentials=None): ServiceCheck.__init__(self, value=value, credentials=credentials) self.command = command