Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Connectivity Check
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Connectivity Check
Commits
ded0619e
Commit
ded0619e
authored
9 months ago
by
Marco Malavolti
Browse files
Options
Downloads
Patches
Plain Diff
Added eccs_status file and fixed LogRotate for stats.
parent
2453e839
No related branches found
No related tags found
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
api.py
+1
-1
1 addition, 1 deletion
api.py
eccs-logrotate.conf
+2
-2
2 additions, 2 deletions
eccs-logrotate.conf
eccs.ini
+1
-1
1 addition, 1 deletion
eccs.ini
eccs_cron
+1
-1
1 addition, 1 deletion
eccs_cron
setup-eccs-dev.sh
+1
-1
1 addition, 1 deletion
setup-eccs-dev.sh
web/index.php
+4
-4
4 additions, 4 deletions
web/index.php
with
10 additions
and
10 deletions
api.py
+
1
−
1
View file @
ded0619e
...
...
@@ -124,7 +124,7 @@ def parseLog(lines,criteria):
rowDate
=
datetime
.
strptime
(
clearDateString
(
row
[
1
]),
'
%a %b %d %H:%M:%S %Y
'
).
strftime
(
'
%Y-%m-%d
'
)
# check for entries to be in range of date of rotated log
# check for entries to be in range of date of rotated log
if
'
cur_date
'
in
criteria
and
criteria
[
'
cur_date
'
]
!=
rowDate
:
continue
...
...
This diff is collapsed.
Click to expand it.
eccs-logrotate.conf
+
2
−
2
View file @
ded0619e
/
home
/
eccs
/
log
s
/
eccs
-
uwsgi
-
req
.
log
{
/
home
/
eccs
/
stat
s
/
eccs
-
uwsgi
-
req
.
log
{
su
root
root
create
664
eccs
eccs
create
rotate
30
daily
nocompress
...
...
This diff is collapsed.
Click to expand it.
eccs.ini
+
1
−
1
View file @
ded0619e
...
...
@@ -23,7 +23,7 @@ wsgi-file = eccs-wsgi.py
plugins
=
python3,logfile
enable-threads
=
true
req-logger
=
file:
log
s/%(project)-uwsgi-req.log
req-logger
=
file:
stat
s/%(project)-uwsgi-req.log
log-maxsize
=
100000000
log-format
=
%(addr)|[%(ctime)]|%(method)|%(uri)|%(uagent)|%(referer)
...
...
This diff is collapsed.
Click to expand it.
eccs_cron
+
1
−
1
View file @
ded0619e
0 22 * * * root (echo "[start LogRotate]" && /usr/sbin/logrotate -v /etc/logrotate.d/eccs && echo "[end LogRotate]") > /proc/1/fd/1 2>&1
0 1 * * * root /usr/bin/touch /home/eccs/eccs.ini
0 1 * * * root (echo "[start PyFF]" && /usr/local/bin/pyff --loglevel=DEBUG /home/eccs/pyff-config/sps-metadata.xml && echo "[end PyFF]") > /proc/1/fd/1 2>&1
0 2 * * * root (echo "[start ECCS]" && /bin/bash /home/eccs/cleanAndRunEccs.sh && echo "[end ECCS]")
>
/proc/1/fd/1
2>&1
0 2 * * * root (echo "[start ECCS]" && /bin/bash /home/eccs/cleanAndRunEccs.sh && echo "[end ECCS]")
2>&1 | tee
/proc/1/fd/1
> /home/eccs/debug/eccs_status
0 8 * * * root (echo "[start ECCS clean]" && /bin/bash /home/eccs/clean7daysOldFiles.sh && echo "[end ECCS clean]") > /proc/1/fd/1 2>&1
This diff is collapsed.
Click to expand it.
setup-eccs-dev.sh
+
1
−
1
View file @
ded0619e
...
...
@@ -24,4 +24,4 @@ echo "docker exec -it -u eccs -w /home/eccs eccs ./cleanAndRunEccs.sh > /proc/1/
echo
""
echo
"Delete all results of today"
echo
""
echo
"docker exec -it -u eccs -w /home/eccs/ eccs rm -rf html/
$(
date
+%Y-%m-%d
)
output/eccs_
$(
date
+%Y-%m-%d
)
.log logs/*_
$(
date
+%Y-%m-%d
)
.log"
echo
"docker exec -it -u eccs -w /home/eccs/ eccs rm -rf html/
$(
date
+%Y-%m-%d
)
output/eccs_
$(
date
+%Y-%m-%d
)
.log logs/*_
$(
date
+%Y-%m-%d
)
.log stats/*_
$(
date
+%Y-%m-%d
)
.log"
This diff is collapsed.
Click to expand it.
web/index.php
+
4
−
4
View file @
ded0619e
...
...
@@ -83,14 +83,14 @@ $data[ 'check_result' ] = htmlspecialchars($_GET[ "check_result" ] ?? null);
<div
class=
"clearfix"
>
<div
class=
"boxStatus"
>
<strong>
Show IdPs with status:
</strong>
<label
id=
"lbl-error"
for=
"error"
>
ERROR
</label>
<input
id=
"error"
type=
"checkbox"
name=
"status"
value=
"ERROR"
/>
<label
id=
"lbl-
ok
"
for=
"
ok"
>
OK
</label>
<label
id=
"lbl-
error
"
for=
"
error"
>
ERROR
</label>
<input
id=
"ok"
type=
"checkbox"
name=
"status"
value=
"OK"
/>
<label
id=
"lbl-
unknown"
for=
"unknown"
>
UNKNOWN
</label>
<label
id=
"lbl-
ok"
for=
"ok"
>
OK
</label>
<input
id=
"unknown"
type=
"checkbox"
name=
"status"
value=
"UNKNOWN"
/>
<label
id=
"lbl-
disabled"
for=
"disabled"
>
DISABLED
</label>
<label
id=
"lbl-
unknown"
for=
"unknown"
>
UNKNOWN
</label>
<input
id=
"disabled"
type=
"checkbox"
name=
"status"
value=
"DISABLE"
/>
<label
id=
"lbl-disabled"
for=
"disabled"
>
DISABLED
</label>
</div>
<!-- END boxStatus -->
<div
class=
"boxCalendar"
>
<div
id=
"calendarGo"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment