[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: error mrtg + crontab



On Wed, Oct 01, 2003 at 05:45:30PM +0200, Frédéric Bothamy wrote:
> * heva <help_debian@yahoo.fr> [2003-10-01 16:47] :
> > Bonjour,
> > 
> > Je viens d'installer mrtg et je l'ai insere dans ma crontab:
> > */5 * * * * /usr/bin/mrtg /etc/mrtg.cfg
> > 
> > Tout semble bien marcher, les graphs generes semble corrects
> > mais je recois des mails d'erreurs:
> > 
> > ERROR : it looks as if you are running two copies of mrtg in parallel on
> > 	the same config file.There is a lockfile
> > 	(/var/lock/mrtg/_etc_mrtg.cfg_l) and its is 
> > 	only 0 seconds old ... Check your crontab.
> > 	(/etc/crontab and /var/spool/cron/root)
> > 
> > Et j'ai bien verifie qu'il n'y ai pas de deamon mrtg.
> 
> S'il n'y a aucun démon mrtg, tu peux sans problème supprimer le fichier
> de verrouillage /var/lock/mrtg/_etc_mrtg.cfg_l. Vérifie tout de même
> avant à qui appartient ce fichier avec lsof
> /var/lock/mrtg/_etc_mrtg.cfg_l.
> 

Le probleme c'est que ce fichier semble etre le lock du mrtg de la
crontab puisqu'il n'est pas present dans /var/lock/mrtg/.
Si j'ai bien compris, on dirait qu'il se lance 2 fois 
(cf le "and its is only 0 second olds")



Reply to: