'Send a check result command to the arbiter'

def post_command(self, timestamp, rc, hostname, service, output):

    if (len(service) == 0):
        extcmd = ('[%lu]    PROCESS_HOST_CHECK_RESULT;%s;%d;%s\n' % (timestamp, hostname, rc, output))
    else:
        extcmd = ('[%lu]    PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n' % (timestamp, hostname, service, rc, output))
    print 'want    to    send', extcmd
