lsc icon indicating copy to clipboard operation
lsc copied to clipboard

Supervision logs multitasks

Open floriancaillet opened this issue 6 years ago • 3 comments

In our LSC practices, we realised a multi-tasks synchronization process. We needed to supervise this process, but status log and perl script check_lsc_status don't work with multi-tasks synchronization . So, we add to status logs, informations about taskname and taskmode (changing AbstractSynchronize.java). And we have made a new perl script for multi-tasks status log file analysis.

We think this changes could be integrated in v2.1. What do you think about that ?

Best regards, Florian CAILLET

floriancaillet avatar Apr 30 '18 12:04 floriancaillet

Thanks for the proposition.

For the moment, I generate several status file by running them separately in cron, for example:

0 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -s user > /var/log/lsc/rh2openldap/syncuser.status 2>&1
5 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -c user > /var/log/lsc/rh2openldap/cleanuser.status 2>&1
10 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -s structure > /var/log/lsc/rh2openldap/syncstructure.status 2>&1
15 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -c structure > /var/log/lsc/rh2openldap/cleanstructure.status 2>&1

coudot avatar Apr 30 '18 12:04 coudot

Set to 2.2 because it changes log format.

coudot avatar Feb 10 '20 13:02 coudot

@floriancaillet Hello, sorry to come back after so many years. We will apply your code to master branch. Could you merge the new perl script inside the original one? There is no need to hav both.

coudot avatar Jul 15 '21 08:07 coudot

@davidcoutadeur doc to update for 2.2

coudot avatar Oct 12 '23 13:10 coudot

@open-ugieiris why did you close this PR?

coudot avatar Nov 14 '23 08:11 coudot

It has been automatically closed because this repository has been removed.

rouazana avatar Nov 14 '23 20:11 rouazana