'Read the check result
00-01: Version
02-05: CRC32
06-09: Timestamp
10-11: Return code
12-75: hostname
76-203: service
204-715: output of the plugin
716-720: padding'

def read_check_result(self, data, iv):

    if (len(data) != 720):
        return None
    if (self.encryption_method == 1):
        data = decrypt_xor(data, self.password)
        data = decrypt_xor(data, iv)
    (version, pad1, crc32, timestamp, rc, hostname_dirty, service_dirty, output_dirty, pad2) = struct.unpack('!hhIIh64s128s512sh', data)
    hostname = hostname_dirty.partition('\x00', 1)[0]
    service = service_dirty.partition('\x00', 1)[0]
    output = output_dirty.partition('\x00', 1)[0]
    return (timestamp, rc, hostname, service, output)
