Project

General

Profile

Tâche #23579

Scénario #23400: Évolution du module ScribeAD

Faire remonter les logs du conteneur addc sur le maître

Added by Joël Cuissinat almost 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/06/2018
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:
Remaining (hours):
0.0

Description

=> s'inspirer du template /etc/rsyslog.conf mis en place en mode conteneur.

Associated revisions

Revision 70e3bdb2 (diff)
Added by Joël Cuissinat almost 5 years ago

Ajout d'un lien symbolique vers les logs samba-ad-dc

Ref: #23579

History

#1 Updated by Joël Cuissinat almost 5 years ago

Proposition d'ajout dans /usr/share/eole/sbin/scribead.sh :

cat > $CONTAINER_ROOTFS/etc/rsyslog.conf <<"EOF" 
#  /etc/rsyslog.conf    Configuration file for rsyslog.
$ModLoad imuxsock # provides support for local system logging
$ModLoad immark  # provides --MARK-- message capability

# Filter duplicated messages.
$RepeatedMsgReduction on

# Set the default permissions for all log files.
$DirOwner syslog
$DirGroup adm
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup adm

$ModLoad omrelp
*.* :omrelp:192.0.2.1:20514
& stop
EOF

Sauf que samba n'utilise pas rsyslog => #4512 :(

#2 Updated by Joël Cuissinat almost 5 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Joël Cuissinat almost 5 years ago

  • Assigned To set to Joël Cuissinat

#4 Updated by Joël Cuissinat almost 5 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 3.0 to 0.15

#5 Updated by Gérald Schwartzmann almost 5 years ago

  • Remaining (hours) changed from 0.15 to 0.0

#6 Updated by Gérald Schwartzmann almost 5 years ago

root@scribe:~# ll /var/log/samba-ad-dc
lrwxrwxrwx 1 root root 38 avril 24 11:24 /var/log/samba-ad-dc -> /var/lib/lxc/addc/rootfs/var/log/samba/
root@scribe:~#
root@scribe:~# tail -f /var/log/samba-ad-dc/log.smbd 
[2018/04/24 09:24:07.281555,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2018/04/24 09:29:26.565954,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
root@scribe:~# tail -f /var/lib/lxc/addc/rootfs/var/log/samba/log.smbd 
[2018/04/24 09:24:07.281555,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2018/04/24 09:29:26.565954,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections

#7 Updated by Gérald Schwartzmann almost 5 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF