Saturday, December 23, 2006

Ubuntu /var/lock/mrtg

Hi ^^

root@JUI:/etc/mrtg# mrtg router-traffic.cfg
Saturday, 23 December 2006 at 17:19: ERROR: Creating templock /var/lock/mrtg/ectory at /usr/bin/mrtg line 1757.

root@JUI:/etc/mrtg# env LANG=C /usr/bin/mrtg router-traffic.cfg
Saturday, 23 December 2006 at 17:26: ERROR: Creating templock /var/lock/mrtg/router-traffic.cfg_l_21684: No such file or directory at /usr/bin/mrtg line 1757.

Ref Solution
(high) Bug #30428:

/var/lock/mrtg disappears on reboot


Description (edit)

In current dapper /var/lock/mrtg -directory disappears on reboot.
Without this directory mrtg won't run, and won't update stats.
Creation of this directory as root makes it work again, but it will disappear again on reboot.


Solve

add "mkdir /var/lock/mrtg" to /etc/rc.local



No comments:

Post a Comment

Popular Posts