• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Network discovery works through manual CLI but not working in GLPI
#1
Hi,

I try to set up network discovery using Fusioninventory Network discavery documentation and I can not make it work!
I am running VM Debian 10. I instaled GLPI 9.4.6 with Fusioninventory plug in 9.4+2.4. I have installed all the packages with all dependencies:
fusioninventory-agent_2.5.2-1_all.deb
fusioninventory-agent-task-collect_2.5.2-1_all.deb
fusioninventory-agent-task-network_2.5.2-1_all.deb
fusioninventory-agent-task-deploy_2.5.2-1_all.deb
fusioninventory-agent-task-esx_2.5.2-1_all.deb


Computers, Windows or Linux that have Fusioninventory agent installed on, they are communicating with GLPI great. I have them in the list with all information.

When I run from GLPI server (GNU/Linux debian 10) in command line fusioninventory-netdiscovery with appropriate options, I got every information that I suppose to.

This is my network printer:

<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>HP ETHERNET MULTI-ENVIRONMENT</DESCRIPTION>
      <DNSHOSTNAME>IP ADDRESS</DNSHOSTNAME>
      <FIRMWARE>TETONXXXXN002.2014A.00</FIRMWARE>
      <IP>IP ADDRESS</IP>
      <IPS>
        <IP>IP ADDRESS</IP>
        <IP>127.0.0.1</IP>
      </IPS>
      <MAC>MAC ADDRESS</MAC>
      <MANUFACTURER>Hewlett-Packard</MANUFACTURER>
      <MODEL>HP LaserJet Pro MFP M428fdn</MODEL>
      <NETBIOSNAME>CAC14</NETBIOSNAME>
      <SERIAL>CNBKM860FR</SERIAL>
      <SNMPHOSTNAME>CAC14</SNMPHOSTNAME>
      <TYPE>PRINTER</TYPE>
      <UPTIME>23 days, 05:32:49.29</UPTIME>
      <USERSESSION>CAC14</USERSESSION>
      <WORKGROUP>WORKGROUP</WORKGROUP>
    </DEVICE>
    <MODULEVERSION>4.1</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>



But when I create task and job for that task as it is described in documentation, nothing is happening...?

When I run in command line fusioninventory-netinventory with appropriate options, I got every information that I suppose to:

<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <CARTRIDGES>
        <TONERBLACK>81</TONERBLACK>
      </CARTRIDGES>
      <FIRMWARES>
        <DATE>2020-04-02</DATE>
        <DESCRIPTION>device firmware</DESCRIPTION>
        <MANUFACTURER>Hewlett-Packard</MANUFACTURER>
        <NAME>HP LaserJet Pro MFP M428fdn</NAME>
        <TYPE>device</TYPE>
        <VERSION>TETONXXXXN002.2014A.00</VERSION>
      </FIRMWARES>
      <INFO>
        <COMMENTS>HP ETHERNET MULTI-ENVIRONMENT</COMMENTS>
        <FIRMWARE>TETONXXXXN002.2014A.00</FIRMWARE>
        <ID>0</ID>
        <IPS>
          <IP>IP ADDRESS</IP>
          <IP>127.0.0.1</IP>
        </IPS>
        <MAC>MAC ADDRESS</MAC>
        <MANUFACTURER>Hewlett-Packard</MANUFACTURER>
        <MEMORY>340</MEMORY>
        <MODEL>HP LaserJet Pro MFP M428fdn</MODEL>
        <NAME>CAC14</NAME>
        <RAM>340</RAM>
        <SERIAL>CNBKM860FR</SERIAL>
        <TYPE>PRINTER</TYPE>
        <UPTIME>23 days, 05:38:42.20</UPTIME>
      </INFO>
      <PAGECOUNTERS>
        <DUPLEX>120</DUPLEX>
        <TOTAL>642</TOTAL>
      </PAGECOUNTERS>
      <PORTS>
        <PORT>
          <IFDESCR>lo</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>1020901705</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE>
          <IFMTU>65536</IFMTU>
          <IFNAME>lo</IFNAME>
          <IFNUMBER>1</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>1020901705</IFOUTOCTETS>
          <IFSPEED>10000000</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>24</IFTYPE>
          <IP>127.0.0.1</IP>
          <IPS>
            <IP>127.0.0.1</IP>
          </IPS>
        </PORT>
        <PORT>
          <IFDESCR>eth0</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>394639220</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>1 day, 02:30:29.78</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>eth0</IFNAME>
          <IFNUMBER>2</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>125566796</IFOUTOCTETS>
          <IFSPEED>1000000000</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>6</IFTYPE>
          <IP>IP ADDRESS</IP>
          <IPS>
            <IP>IP ADDRESS</IP>
          </IPS>
          <MAC>MAC ADDRESS</MAC>
        </PORT>
      </PORTS>
    </DEVICE>
    <MODULEVERSION>4.1</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>SNMPQUERY</QUERY>
</REQUEST>



What em I doing wrong so I can not get this information in the GLPI?

Thank you very much.

Regards,

Đorđe Talović
  Reply
#2
OK fellas,

I solved mystery.
When I prepared LAMP server for GLPI, I was using GNU/Linux Debian from NetInstal image. That is smallest GNU/Linux Debian image with a minimum of most necessary package just to run installation and everything else is downloaded form the internet. I deselect everything, except SSH server.
So my installation suffered from a lack of packages "netdiscover"!!
After I installed that package, network discovery is working, naturally Big Grin .

But of course SNMPv3 is not working. Only SNMPv1&v2. And from some device, like EATON UPS 9SX can not be read name, so I need to enable in Rules MAC import.

If someone have some idea, please suggest it, and share your experience with me.

Thank you.
Cheers.
  Reply
#3
Hi talekksna

in the debian installation doc, you should have read:
Code:
If you need SNMPv3 support for network inventory, you should also install this one:

apt -y install libdigest-hmac-perl

Hope this is your answer.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)