Project

General

Profile

Evolution #3213

Suites aux évolutions rsyslog, l'agent eximstats ne fonctionne plus

Added by Joël Cuissinat over 11 years ago. Updated over 11 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
04/02/2012
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:
Distribution:
EOLE 2.3

Description

Voir les chemins dans #2517


Related issues

Follows eole-exim - Anomalie #2517: exim4 : ne semble pas utiliser syslog Fermé 12/02/2011

Associated revisions

Revision 89160e7d (diff)
Added by Joël Cuissinat over 11 years ago

  • eximstats.sh : mise à niveau des chemins vers les fichiers de log
    Fixes #3213 @30m

Revision 3cac505c (diff)
Added by Johan Cwiklinski over 5 years ago

Drop default chart from preferences; fixes #3213

History

#1 Updated by Joël Cuissinat over 11 years ago

Proposition de code pour /usr/share/zephir/monitor/bin/eximstats.sh :

#!/bin/bash

# statistiques Exim
. /usr/share/eole/FonctionsEoleNg

# calcul du nom d'hôte pour rsyslog
host=`RunCmd "hostname -s" $container_name_mail`

f1=/var/log/rsyslog/$host/exim/exim.info.log
f2="$f1.1" 
for log in $f1 $f2;do
    [ -f "$log" ] && f="$f $log" 
done

if [ ! -z "$f" ];then
    opts="-nt -h0 -tnl -t0 -nr -nvr -q60" 
    $container_path_mail/usr/sbin/eximstats $opts $f
fi
exit 0

#2 Updated by Benjamin Bohard over 11 years ago

L'arborescence a encore changé :)

f1=/var/log/rsyslog/local/exim/exim.info.log

#3 Updated by Joël Cuissinat over 11 years ago

  • Status changed from Accepté to Résolu
  • % Done changed from 0 to 100

#4 Updated by Daniel Dehennin over 11 years ago

  • Status changed from Résolu to Fermé

Fonctionne

Réception     38.3 ko     44
Envoi     38.3 ko     44

Also available in: Atom PDF