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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

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

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

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

Post 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 ~]#
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

Can you copy and then paste the command that I posted earlier exactly how it is shown?
Be sure to check out our Knowledgebase for helpful articles and solutions!
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

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

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked