|
|
@ -7,6 +7,7 @@ env = Environment(loader=FileSystemLoader('templates/'), autoescape=True)
|
|
|
|
template = env.get_template('metrics.html')
|
|
|
|
template = env.get_template('metrics.html')
|
|
|
|
form = funct.form
|
|
|
|
form = funct.form
|
|
|
|
service = form.getvalue('service')
|
|
|
|
service = form.getvalue('service')
|
|
|
|
|
|
|
|
title = 'Metrics service'
|
|
|
|
|
|
|
|
|
|
|
|
funct.check_login()
|
|
|
|
funct.check_login()
|
|
|
|
print('Content-type: text/html\n')
|
|
|
|
print('Content-type: text/html\n')
|
|
|
@ -23,7 +24,6 @@ try:
|
|
|
|
if not stderr:
|
|
|
|
if not stderr:
|
|
|
|
if service_ver[0] == '* is not installed' or service_ver == '':
|
|
|
|
if service_ver[0] == '* is not installed' or service_ver == '':
|
|
|
|
servers = ''
|
|
|
|
servers = ''
|
|
|
|
title = 'Metrics service'
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if service == 'nginx':
|
|
|
|
if service == 'nginx':
|
|
|
|
if funct.check_login(service=2):
|
|
|
|
if funct.check_login(service=2):
|
|
|
|