Page 2 of 2

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Posted: Mon Mar 28, 2016 8:36 am
by dshearon
Sorry for the long wait. Here is the output of that command. The files you see deleted were us troubleshooting. We tried removing the host then deleting any files associated with it. After that was complete we tried running the wizard again after and had the same results.


[root@CLTISVCORPMON02 ~]# time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg ls -lock-file /var/lock/mrtg/
2016-03-28 09:29:57: 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/) and it is
is only 0 seconds old ... Check your crontab.
(/etc/crontab and /var/spool/cron/root)

real 0m0.103s
user 0m0.093s
sys 0m0.009s

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Posted: Mon Mar 28, 2016 9:29 am
by tgriep
Try running the command without the lock-file option like below and then post the output.

Code: Select all

time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ls -l /var/lock/mrtg/

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Posted: Mon Mar 28, 2016 12:44 pm
by dshearon
Here is the output.

[root@CLTISVCORPMON02 ~]# time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg ls -l /var/lock/mrtg/
Option l is ambiguous (lock-file, log-only, logging)
Please use valid Options

real 0m0.200s
user 0m0.092s
sys 0m0.015s
[root@CLTISVCORPMON02 ~]#

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Posted: Mon Mar 28, 2016 1:47 pm
by tgriep
Can you copy and then paste the command that I posted earlier exactly how it is shown?

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Posted: Tue Apr 12, 2016 10:25 am
by dshearon
Here is the output when copy and pasting the command.


[root@CLTISVCORPMON02 ~]# time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
2016-04-12 11:23:43: ERROR: I guess another mrtg is running. A lockfile (/etc/mrtg/mrtg.cfg_l) aged
19 seconds is hanging around. If you are sure that no other mrtg
is running you can remove the lockfile

real 0m0.108s
user 0m0.094s
sys 0m0.012s

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Posted: Tue Apr 12, 2016 3:21 pm
by tgriep
Can you post the following files so we can review them?

Code: Select all

/etc/mrtg/mrtg.cfg
/etc/mrtg/conf.d/10.64.0.2.cfg
/etc/cron.d/mrtg
Then run the following and post the output of the following as well?

Code: Select all

rm /etc/mrtg/mrtg.cfg_l
time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ps -ef