Issue Details (XML | Word | Printable)

Key: XX-5286
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Andrei Niculae
Reporter: Martin Steinmann
Votes: 0
Watchers: 0
Available Workflow Actions

Resolve
Request Information
Operations

If you were logged in you would be able to see more operations.
sipXecs

sipx-mrtg subsystem should not use hardcoded path

Created: 2008-01-08 14:53   Updated: 2009-04-25 07:29
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File sipx-mrtg.patch (4 kB) 2008-01-08 14:53 - Martin Steinmann

Issue Links:
Related
 


 Description  « Hide
The attached patch includes changes necessary on FreeBSD to adjust th path for the sipx mrtg subsystem. The patch needs to be reviewed and might not work as posted.

Al Campbell added a comment - 2008-01-10 14:28
Could you please review this to ensure it will won't make existing functionality not work.

Martin Steinmann added a comment - 2008-01-11 20:37
> Would you mind having a quick look at the patch below? On FreeBSD
the
> path for the mrtg executable is /usr/local/bin and I am wondering
> whether the parameter ${sysdir.bin} would work in a Java file.
>
>
>

No it would not. It has to be injected from the spring file, but even
then {sysdir.bin} is probably not what you are looking for since it
{sysdir.bin} is influenced by prefix and location of mrtg probably
should not be.
I think we need an issue for that - I missed the fact that MRTG location

is hardcoded. Looks like it should be configure variable.

D.

Lih-Shyng Tzeng added a comment - 2008-01-21 22:46
Move this to 4.0 since it is a minor improvement and since we are reaching the end of the 3.10 cycle.

Martin Steinmann added a comment - 2008-02-01 18:55
This is another hard coded path that required patching for FreeBSD:

Index: MRTGConfig.java
===================================================================
--- MRTGConfig.java (revision 11839)
+++ MRTGConfig.java (working copy)
@@ -41,7 +41,7 @@
     private static final String LOG_FORMAT_TOKEN = "LogFormat";
     private static final String PATH_ADD_TOKEN = "PathAdd";
     private static final String DEFAULT_LOG_FORMAT = "rrdtool";
- private static final String DEFAULT_PATH_ADD = "/usr/bin";
+ private static final String DEFAULT_PATH_ADD = "/usr/local/bin";

     private static final String COMMA = ",";
     private static final String POUND = "#";

Andrei Niculae added a comment - 2008-03-11 10:31
Because of the changes introduced by XCF-2348, most of the issues regarding paths under FreeBSD should be resolved.
However, there is still this one: MIBS_DIR=@PREFIX@/share/snmp/mibs which should not look like this, because the MIBS_DIR should be realative to the snmp prefix, not to sipx prefix.
Also, regarding the last comment by Martin:
I believe DEFAULT_PATH_ADD should remain /usr/bin, since this will eventually be overwritten by the setting from the mrtg template configuration.
In the patch for XCF-2348, I've created a way to change this according to the platform, so it should be easy.

After XCF-2348 enters the mainline, I'll remake the patch posted here, but since I cannot test it, I'm going to need some help.

Regards,
Andrei