Bug 198697

Summary: mrtg install uses incorrect directory for log files
Product: [Fedora] Fedora Reporter: Don Russell <fedora>
Component: mrtgAssignee: Miloslav Trmač <mitr>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: netllama
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-16 01:52:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.