Bug 198697 - mrtg install uses incorrect directory for log files
Summary: mrtg install uses incorrect directory for log files
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mrtg
Version: 5
Hardware: noarch
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-12 21:27 UTC by Don Russell
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2006-07-16 01:52:41 UTC


Attachments (Terms of Use)

Description Don Russell 2006-07-12 21:27:40 UTC
Description of problem:
After installing mrtg (yum install mrtg) the sample log file causes logs to be
placed in /var/lib instead of /var/log. Of course the sample could be changed by
the user, but the mrtg directory is also created in /var/lib instead of /var/log

Upstream doc suggests using /var/log... 
Ref: http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html in the "Running
mrtg" section.

Version-Release number of selected component (if applicable):
2.13.2.0.fc5.1

How reproducible:
Always (I suspect some form of a typo in the rpm packaging/installing script)


Steps to Reproduce:
1. yum install mrtg
2. vim /etc/mrtg/mrtg.cfg
3.
  
Actual results:
LogDir: /var/lib/mrtg
An mrtg directory is created in /var/lib


Expected results:
LogDir: /var/log/mrtg
An mrtg directory should be created in /var/log


Additional info:

Comment 1 Don Russell 2006-07-12 21:30:05 UTC
Perhaps this could be be addressed when the package is rebuilt for a newer
version of mrtg. (There have been several releases since this 2.13.2.0 one,
2.14.4 is the latest, released 4 July 2006)



Comment 2 Miloslav Trmač 2006-07-16 01:52:41 UTC
The "running mrtg" section talks about --logging, a place for warning and error
messages.

LogDir on the other hand is the place for the mrtg _data_ files (not event logs
for system administration that can be removed or truncated without affecting
system operation, like the other files in /var/log).  Such data files do belong
in /var/lib.


Fedora Core releases are not in general updated to new package versions just
as they are available; the development branch already contains mrtg-2.14.4.


Note You need to log in before you can comment on or make changes to this bug.