dhcp-leases file now always detected (mostly on Redhat hosts)

Bug #720628 reported by Bernhard Denner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Medium
mortheres

Bug Description

hi,

On our Redhat hosts the unix agent doesn't detect the dhcp-leases file, because Redhat uses different names for it.
So I added these values to the file Ocsinventory-Agent-1.1.2.1/lib/Ocsinventory/Agent/Backend/OS/Linux/Network/Networks.pm:
"/var/lib/dhcp/dhclient.%s.leases",
"/var/lib/dhcp/dhclient.leases",
"/var/lib/dhcp/dhclient-%s.leases",
"/var/lib/dhclient/dhclient-%s.leases"

This was tested on:
- Redhat 8
- Redhat Enterprise 3.1, 3.4, 4.3, 4.4, 4.5, 5.3
- Debian 4.0, 5.0.2, 5.0.3, 5.0.5
- Ubuntu 9.04, 9.10, 10.04

regards
Bernhard

Revision history for this message
Bernhard Denner (bernhard-denner-thalesgroup) wrote :

adding patch for this bug

Revision history for this message
mortheres (mortheres) wrote :

Hi Bernhard,

Thanks a lot for your patch. It has been added at the revision 1029 of the 2.0 stable branch : http://bazaar.launchpad.net/~ocsinventory-dev/ocsinventory-unix-agent/stable-2.0/revision/1029 .

It will be released in the future 2.0 RC3 relase and so in the final 2.0 release :) :).

Kind regards,

--
Guillaume

Changed in ocsinventory-unix-agent:
status: New → Fix Committed
assignee: nobody → mortheres (mortheres)
importance: Undecided → Medium
mortheres (mortheres)
Changed in ocsinventory-unix-agent:
status: Fix Committed → In Progress
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.