Run one nagios plugin and return retcode of the execution

def retcode(plugin, args='', key_name=None):
    '''
    Run one nagios plugin and return retcode of the execution
    '''
    data = {}

    # Remove all the spaces, the key must not have any space
    if key_name is None:
        key_name = _format_dict_key(args, plugin)

    data[key_name] = {}

    status = _execute_cmd(plugin, args, 'cmd.retcode')
    data[key_name]['status'] = status

    return data