Univention Bugzilla – Bug 43828
mrtg runs twice
Last modified: 2021-04-14 14:06:53 CEST
# grep -rs mrtg /etc/cron* /etc/cron.d/univention-mrtg:# /etc/univention/templates/files/etc/cron.d/univention-mrtg /etc/cron.d/univention-mrtg:# Create mrtg statistics /etc/cron.d/univention-mrtg:*/15 * * * * root /usr/sbin/univention-mrtg /etc/cron.d/mrtg:*/5 * * * * root 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 # grep ^[^#] /etc/mrtg.cfg WorkDir: /var/www/mrtg WriteExpires: Yes Title[^]: Traffic Analysis for # ls -li /var/www/*/mrtg-?.png 785863 -rw-r--r-- 1 root root 538 Nov 10 15:00 /var/www/mrtg/mrtg-l.png 785864 -rw-r--r-- 1 root root 414 Nov 10 15:00 /var/www/mrtg/mrtg-m.png 785865 -rw-r--r-- 1 root root 1759 Nov 10 15:00 /var/www/mrtg/mrtg-r.png 785866 -rw-r--r-- 1 root root 538 Nov 10 15:00 /var/www/statistic/mrtg-l.png 785867 -rw-r--r-- 1 root root 414 Nov 10 15:00 /var/www/statistic/mrtg-m.png 785868 -rw-r--r-- 1 root root 1759 Nov 10 15:00 /var/www/statistic/mrtg-r.png 785866 -rw-r--r-- 1 root root 538 Nov 10 15:00 /var/www/statistik/mrtg-l.png 785867 -rw-r--r-- 1 root root 414 Nov 10 15:00 /var/www/statistik/mrtg-m.png 785868 -rw-r--r-- 1 root root 1759 Nov 10 15:00 /var/www/statistik/mrtg-r.png
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
mrtg will be removed for UCS-5 anyway.