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

Re: MRTG ERROR



-----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-----


Reply to: