agent-2.0rc3 (and 4) ignores server setting from /etc/sysconfig/
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Unified Unix Agent |
Fix Released
|
Medium
|
mortheres |
Bug Description
I am trying ocsinventory-
For the 1.1.2.1 agent, I get my settings from /etc/sysconfig/
I guess this is due to the following code that was in 1.1.2.1, but is not in 2.0rc3 any more:
# allow "server" from command line when "local" in config. file
if (defined(
$config-
undef $config-
undef $config-
}
Best regards,
Matthias
Changed in ocsinventory-unix-agent: | |
status: | Fix Committed → In Progress |
status: | In Progress → Fix Released |
Hi Matthias,
Thanks a lot for our report but it is a strange behaviour you had because I can find any piece of code like the one you gave us in your report in the OCS Unix agent 1.1.2.1 :S :S. I take a look to the 1.1.2.1 source and it never integrated the /etc/sysconfig/ ocsinventory- agent directory as a directory where the agent reads it configuration :S :S.
How does the 1.1.2 agent was installed ? Using source code ? Using a rpm package ? In which source file is the piece of code you gave us in your report ?
Anyway, integrate the /etc/sysconfig/ ocsinventory- agent directory as a directory should be very easy to do. I attach a patch to integrarte the /etc/sysconfig/ ocsinventory- agent/ as a configuration directory. This directory must include a configuration file named ocsinventory- agent.cfg . Tell us if this patch works for you.
Kind regards,
Guillaume