MRTG ERROR

2015-03-11 Thread Diác. C.J.Moretti
Hello!

A few days to hj'm getting a mail from my server with the following error:


Cron root@mitranhsi if [ -x /usr/bin/mrtg ]  [ -r /etc/mrtg.cfg ]  [ -d 
$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print 
$NF }') ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg 
/etc/mrtg.cfg 21 | tee -a /var/log/mrtg/mrtg.log ; fi

2015-03-09 22:40:27: ERROR: I guess another mrtg is running. A lockfile 
(/var/lock/mrtg/_etc_mrtg.cfg_l) aged
773 seconds is hanging around. If you are sure that no other mrtg
is running you can remove the lockfile


Can someone give me a hint on how to fix this?

Moretti
 

 \///
(o o)
__ oo0 - () - 0oo __
Tarde te amei,
Beleza antiga e tão nova,
tarde te amei.

Estavas dentro de mim
e eu estava fora...
Estavas comigo
e eu não estava contigo...
__
 (Sto. Agostinho)



Re: MRTG ERROR

2015-03-11 Thread Gary Dale

On 11/03/15 07:40 AM, Diác. C.J.Moretti wrote:

Hello!

A few days to hj'm getting a mail from my server with the following error:


Cron root@mitranhsi if [ -x /usr/bin/mrtg ]  [ -r /etc/mrtg.cfg ] 
 [ -d $(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg 
| awk '{ print $NF }') ]; then mkdir -p /var/log/mrtg ; env LANG=C 
/usr/bin/mrtg /etc/mrtg.cfg 21 | tee -a /var/log/mrtg/mrtg.log ; fi


2015-03-09 22:40:27: ERROR: I guess another mrtg is running. A 
lockfile (/var/lock/mrtg/_etc_mrtg.cfg_l) aged

773 seconds is hanging around. If you are sure that no other mrtg
is running you can remove the lockfile


Can someone give me a hint on how to fix this?

Moretti


As root remove the lock file.

e.g.:
su
rm /var/lock/mrtg/_etc_mrtg.cfg_l
exit

or if you are using sudo instead of a root account:

sudo rm /var/lock/mrtg/_etc_mrtg.cfg_l


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/550039e4.4010...@torfree.net



Re: MRTG ERROR

2015-03-11 Thread Richard Hector
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/03/15 01:49, Gary Dale wrote:
 On 11/03/15 07:40 AM, Diác. C.J.Moretti wrote:
 Hello!
 
 A few days to hj'm getting a mail from my server with the
 following error:
 
 
 Cron root@mitranhsi if [ -x /usr/bin/mrtg ]  [ -r
 /etc/mrtg.cfg ]  [ -d $(grep
 '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{
 print $NF }') ]; then mkdir -p /var/log/mrtg ; env LANG=C 
 /usr/bin/mrtg /etc/mrtg.cfg 21 | tee -a /var/log/mrtg/mrtg.log
 ; fi
 
 2015-03-09 22:40:27: ERROR: I guess another mrtg is running. A 
 lockfile (/var/lock/mrtg/_etc_mrtg.cfg_l) aged 773 seconds is
 hanging around. If you are sure that no other mrtg is running you
 can remove the lockfile
 
 
 Can someone give me a hint on how to fix this?
 
 Moretti
 
 As root remove the lock file.

Given this is running from cron, I'd be careful about that. The lock
file is there to prevent multiple instances running; it's easy with
cron to have a process run longer than the interval between runs,

So, I'd firstly figure out why it takes longer than expected, then
decide if that's ok, and possibly adjust the crontab to increase the
interval - or fix whatever's causing it to take too long.

Richard

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJVAE/aAAoJELSi8I/scBaN2koH/i8NqChKRaq/F6oqdmj9Q41v
mN/ej3ep7fY4EOwzoo9JOuR4/Wonkys76ahCfopv/q+uXFWBv9yBnw2oL80O4eKn
d22VfGnD7+InVMV0AIQnSZ8Il4/PsRWt+4klDAYN3YTErthcb2NQg0aJC2uUYvmh
k0Zq9VqDkZBNC6jg3pK5Bo/EI6Mo/uZji8vVtatmhPC3lcrwYyL90eGkQuRtLLeS
UFqy8o1vcCj2nYn2u+wl/6DIkO2Bv+xITpUt8lkP5j7CIm8roj3L25cl+Nf+gN7z
pwYic+LfDlvaK6el+TdtvIZH0FjLuQlJeFsCz5YETMGayH65+olIlQCpaP1EeZQ=
=LdAp
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55004fe0.4060...@walnut.gen.nz



Mrtg error

2015-03-10 Thread Diác. C.J.Moretti
Hello!

A few days to hj'm getting a mail from my server with the following error:


Cron root@mitranhsi if [ -x /usr/bin/mrtg ]  [ -r /etc/mrtg.cfg ]  [ -d 
$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print 
$NF }') ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg 
/etc/mrtg.cfg 21 | tee -a /var/log/mrtg/mrtg.log ; fi

2015-03-09 22:40:27: ERROR: I guess another mrtg is running. A lockfile 
(/var/lock/mrtg/_etc_mrtg.cfg_l) aged
773 seconds is hanging around. If you are sure that no other mrtg
is running you can remove the lockfile


Can someone give me a hint on how to fix this?

Moretti
 
 
 \///
 (o o)
 oo0 - () - 0oo 
Na certeza de nossa imortalidade, seguimos 
nosso caminho fazendo o bem, desejando bem 
e sendo a paixão única de nosso Deus.
__