Ejemplo n.º 1
0
 role=role,
 user=user,
 users=users,
 groups=groups,
 users_groups=sql.select_user_groups_with_names(1, all=1),
 roles=sql.select_roles(),
 metrics_master=''.join(metrics_master),
 metrics_worker=''.join(metrics_worker),
 checker_master=''.join(checker_master),
 checker_worker=''.join(checker_worker),
 keep_alive=''.join(keep_alive),
 smon=''.join(smon),
 grafana=''.join(grafana),
 prometheus=''.join(prometheus),
 haproxy_wi_log_id=funct.haproxy_wi_log(log_id=1,
                                        file="haproxy-wi-",
                                        with_date=1),
 metrics_log_id=funct.haproxy_wi_log(log_id=1, file="metrics-",
                                     with_date=1),
 checker_log_id=funct.haproxy_wi_log(log_id=1, file="checker-",
                                     with_date=1),
 keep_alive_log_id=funct.haproxy_wi_log(log_id=1, file="keep_alive"),
 checker_error_log_id=funct.haproxy_wi_log(log_id=1, file="checker-error"),
 metrics_error_log_id=funct.haproxy_wi_log(log_id=1, file="metrics-error"),
 error=stderr,
 versions=funct.versions(),
 haproxy_wi_log=funct.haproxy_wi_log(),
 servers=servers,
 is_checker_worker=is_checker_worker,
 is_metrics_worker=is_metrics_worker,
 host=host,
Ejemplo n.º 2
0
    checker_worker = ''
    keep_alive = ''
    api = ''
    date = ''
    error = ''
    versions = ''
    haproxy_wi_log = ''
    servers = ''

template = template.render(h2=1,
                           autorefresh=1,
                           title="Overview",
                           role=role,
                           user=user,
                           users=users,
                           groups=groups,
                           roles=sql.select_roles(),
                           metrics_master=''.join(metrics_master),
                           metrics_worker=''.join(metrics_worker),
                           checker_master=''.join(checker_master),
                           checker_worker=''.join(checker_worker),
                           keep_alive=''.join(keep_alive),
                           api=''.join(api),
                           date=funct.get_data('logs'),
                           error=stderr,
                           versions=funct.versions(),
                           haproxy_wi_log=funct.haproxy_wi_log(),
                           servers=servers,
                           token=token)
print(template)