Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
slapos
Commits
7f1f23e3
Commit
7f1f23e3
authored
Mar 16, 2015
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: Correctly send parameters to apachedex
parent
d4ab5c03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
stack/monitor/monitor.cfg.in
stack/monitor/monitor.cfg.in
+1
-0
stack/monitor/run-apachedex.py.in
stack/monitor/run-apachedex.py.in
+12
-6
No files found.
stack/monitor/monitor.cfg.in
View file @
7f1f23e3
...
...
@@ -211,6 +211,7 @@ extra-context =
key name :script-name
[apachedex-parameters]
default_parameter =
# XXX - Sample log file with curent date: apache_access.log-%(date)s.gz
# which will be equivalent to apache_access.log-20150112.gz if the date is 2015-01-12
apache-log-list =
...
...
stack/monitor/run-apachedex.py.in
View file @
7f1f23e3
...
...
@@ -7,13 +7,14 @@ import subprocess
from datetime import date
base_name = "{{ name }}".strip()
default = "{{ parameter_dict['default_parameter'] }}".strip()
apache_log_list = """{{ parameter_dict['apache-log-list'] }}""".split('\n')
base_list = [base.strip() for base in
base_list = [base.strip()
.split(' ')
for base in
"""{{ parameter_dict['base-list'] }}""".split('\n') if base]
skip_base_list = [base.strip() for base in
skip_base_list = [base.strip()
.split(' ')
for base in
"""{{ parameter_dict['skip-base-list'] }}""".split('\n')
if base]
erp5_base_list = [base.strip() for base in
erp5_base_list = [base.strip()
.split(' ')
for base in
"""{{ parameter_dict['erp5-base-list'] }}""".split('\n')
if base]
...
...
@@ -31,6 +32,8 @@ if not os.path.exists(folder_today):
apachedex = "{{ apachedex_executable }}".strip()
argument_list = [apachedex, '--js-embed', '--out',
os.path.join(folder_today, 'ApacheDex-%s.html' % base_name)]
if default:
argument_list += ['--default', default]
log_list = []
for logfile in apache_log_list:
...
...
@@ -48,15 +51,18 @@ if not log_list:
if erp5_base_list:
argument_list.append('--erp5-base')
argument_list += erp5_base_list
for args_list in erp5_base_list:
argument_list += args_list
if base_list:
argument_list.append('--base')
argument_list += base_list
for args_list in base_list:
argument_list += args_list
if skip_base_list:
argument_list.append('--skip-base')
argument_list += skip_base_list
for args_list in skip_base_list:
argument_list += args_list
argument_list.append('--error-detail')
argument_list += log_list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment