Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
71f6f140
authored
Dec 22, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
mofications to rotation files
parent
eebed528
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
sails/cron/logrotate.conf
sails/cron/report.sh
sails/cron/logrotate.conf
View file @
71f6f140
...
...
@@ -5,7 +5,7 @@
mail
amontejo
@
ujaen
.
es
compress
create
700
ubuntu
ubuntu
p
ost
rotate
p
re
rotate
/
home
/
ubuntu
/
pictogram
/
sails
/
cron
/
report
.
sh
endscript
}
sails/cron/report.sh
View file @
71f6f140
...
...
@@ -8,7 +8,7 @@ STU_LOGIN_VALIDS=`egrep "\/stu\/login" access.json | grep "'status': 200" | wc -
SHOW_GRIDS
=
`
egrep
"/stu/[0-9]+/grids"
access.json | wc
-l
`
STUDENTS_ACCESSED
=
`
egrep
"/stu/[0-9]+/grids"
access.json | sed
"s/.*
\/
stu
\/\(
[0-9]
\+\)\/
.*/
\1
/g"
|uniq |wc
-l
`
mail amontejo@ujaen.es
<<
END
send
mail amontejo@ujaen.es
<<
END
Subject: Informe de Pictogram sobre
$HOSTNAME
Nº de intentos de login de supervisor:
$SUP_LOGIN_ATTEMPTS
Nº de logins válidos de supervisor:
$SUP_LOGIN_VALIDS
...
...
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