Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MRTG ERROR

26 views
Skip to first unread message

"Diác. C.J.Moretti"

unread,
Mar 11, 2015, 7:50:06 AM3/11/15
to
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 2>&1 | 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)

Gary Dale

unread,
Mar 11, 2015, 9:00:04 AM3/11/15
to
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 2>&1 | 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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/550039E4...@torfree.net

Richard Hector

unread,
Mar 11, 2015, 10:30:05 AM3/11/15
to
-----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 2>&1 | 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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/55004FE0...@walnut.gen.nz
0 new messages