ocsinventory-agent not sending IP address, Debian 9 (stretch)

Bug #1703023 reported by jcdouglas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OCS Inventory: Server
Invalid
Undecided
Unassigned
Ubuntu
Invalid
Undecided
Unassigned
ocsinventory-agent (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Not sure if this is a bug with ocsinventory-agent or the net-tools package, so apologies if this is the wrong place to report this.

Ocsinventory unified agent for UNIX, Linux and MacOSX (2.0.5) (not installed from source, deb repository install)
Linux $HOSTNAME 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) i686 GNU/Linux

Noticed that my Debian 9/Ubuntu 16.10/17.04 clients aren't reporting the IP address to the web interface (showing in OCSReports). Ran the following command:

 ocsinventory-agent --debug --logfile=ocs.log

Noticed the following in the [debug] section:

     [Fri Jul 7 15:17:57 2017][debug] Section HARDWARE has changed since last inventory
     [Fri Jul 7 15:17:57 2017][debug] Missing value(s): MAC-address . I will send this inventory to the server BUT important value(s) to identify the computer are missing
     [Fri Jul 7 15:17:58 2017][debug] sending XML
     [Fri Jul 7 15:17:58 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>

Looked for IPADDR tags, found the following (addresses have been changed):

    <HARDWARE>
      <CHECKSUM>1</CHECKSUM>
      <DATELASTLOGGEDUSER>Fri Jul 7 15:08</DATELASTLOGGEDUSER>
      <DEFAULTGATEWAY>192.168.1.2</DEFAULTGATEWAY>
      <DESCRIPTION>x86_64/00-00-23 20:58:16</DESCRIPTION>
      <DNS>192.168.1.1/192.168.1.1</DNS>
      <IPADDR></IPADDR>

While googling, found this:
http://www.linuxquestions.org/questions/linux-software-2/ocs-inventory-ip-address-of-clients-shows-blank-on-web-page-4175537702/

Doesn't work. ocsinventory-agent doesn't have any issue finding ifconfig, it's in the path (/sbin/), hence:

[Fri Jul 7 16:45:45 2017][debug] - ifconfig found
[Fri Jul 7 16:45:45 2017][debug] - ifconfig found

Observed that ifconfig in Debian 9 (stretch)Ubuntu 16/17 no longer provides the HWaddr information, which, I'm not sure if this is relevant to the debug message from earlier regarding the MAC address, but it seems so.

Interestingly enough found this in regards to the missing HWaddr info:
http://forums.fedoraforum.org/showthread.php?t=282415

Not sure what's deprecated about a perfectly functioning utility, but ifconfig appears to call the HWaddr/MAC "ether" now.

Somewhat sanitized logfile attached.

Revision history for this message
jcdouglas (jcdouglas) wrote :
Revision history for this message
Philippe BEAUMONT (kapouik) wrote :

Launchpad is not used anymore. Please go on github and try the latest version of OCS.

Changed in ocsinventory-server:
status: New → Invalid
Revision history for this message
jcdouglas (jcdouglas) wrote : Re: [Bug 1703023] Re: ocsinventory-agent not sending IP address, Debian 9 (stretch)

Already done, and it's working with the new client. However repositories
still have 2.0.5.

On Thu, Jul 13, 2017 at 12:39 PM, Philippe BEAUMONT <
<email address hidden>> wrote:

> Launchpad is not used anymore. Please go on github and try the latest
> version of OCS.
>
> ** Changed in: ocsinventory-server
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1703023
>
> Title:
> ocsinventory-agent not sending IP address, Debian 9 (stretch)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ocsinventory-server/+bug/1703023/+subscriptions
>

Frank (frank-bourdeau)
Changed in ubuntu:
status: New → Invalid
Changed in ocsinventory-agent (Ubuntu):
status: New → Invalid
Revision history for this message
Goshwagen! (rsepulvedacl) wrote :

To override it, you may downgrade ifconfig with these commands (maybe not recommended!):

$ wget http://archive.ubuntu.com/ubuntu/pool/main/n/net-tools/net-tools_1.60-26ubuntu1_amd64.deb
$ sudo dpkg -i net-tools_1.60-26ubuntu1_amd64.deb
$ sudo apt-mark hold net-tools
$ sudo ocsinventory-agent

Revision history for this message
David Marzal (marzal) wrote :

Another workaround is to use the 2.4 version from cosmic:
https://launchpad.net/ubuntu/cosmic/+source/ocsinventory-agent

For example:
http://launchpadlibrarian.net/381276970/ocsinventory-agent_2.4.2-1_amd64.deb

In Ubuntu 18.04 it's working.

A backport would be nice.

Revision history for this message
Frank (frank-bourdeau) wrote :

Please go to github.

Revision history for this message
Schplurtz le déboulonné (schplurtz) wrote :

> Please go to github.
Please add the URL if you want people to find your product page easily.

Revision history for this message
Frank (frank-bourdeau) wrote :
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.