Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.8 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

ipdiscover don't work on linux agnet

server: cent os 7

ocs server/agent: 2.8.1 (on the same machine)

windows agents work ok (ipdiscover discover hosts but no snmp)

I can't force unix agent to ipdiscover neither snmp

------

ocsinventory_agent.cfg:

snmptimeout=3
ca=/etc/ocsinventory/cacert.pem
snmp=1
basevardir=/var/lib/ocsinventory-agent
debug=1
server=http://localhost/ocsinventory
tag=server
snmpretry=2
logger=Stderr
logfile=/var/log/ocsinventory-agent/ocsinventory-agent.log

---------

ocsinventory_agent.log:

[Mon Jan 25 08:44:30 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Mon Jan 25 08:44:30 2021][debug] Log system initialised (File)
[Mon Jan 25 08:44:30 2021][debug] --scan-homedirs missing. Don't scan user directories
[Mon Jan 25 08:44:30 2021][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__localhost_ocsinventory/ocsinv.adm
[Mon Jan 25 08:44:30 2021][debug] A TAG seems to already exist in the ocsinv.adm file. The -t parameter will be ignored. Don't forget that the TAG value will be ignored by the server unless it has OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT=1.
[Mon Jan 25 08:44:30 2021][debug] OCS Agent initialised
[Mon Jan 25 08:44:30 2021][debug] Turns hooks on for /etc/ocsinventory/modules.conf
[Mon Jan 25 08:44:30 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Mon Jan 25 08:44:30 2021][debug] Log system initialised (File)
[Mon Jan 25 08:44:30 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Mon Jan 25 08:44:30 2021][debug] Log system initialised (File)
[Mon Jan 25 08:44:30 2021][debug] Calling handlers : `start_handler'
[Mon Jan 25 08:44:30 2021][debug] [snmpscan] Calling snmp_start_handler
[Mon Jan 25 08:44:30 2021][debug]  - Net::SNMP loaded
[Mon Jan 25 08:44:30 2021][debug] [download] Calling download_start_handler
[Mon Jan 25 08:44:30 2021][debug]  - LWP loaded
[Mon Jan 25 08:44:30 2021][debug]  - LWP::Protocol::https loaded
[Mon Jan 25 08:44:30 2021][debug] Compress::Zlib is available.
[Mon Jan 25 08:44:30 2021][debug] Calling handlers : `prolog_writer'
[Mon Jan 25 08:44:30 2021][debug] sending XML
[Mon Jan 25 08:44:30 2021][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>glpi-2021-01-22-12-00-36</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[Mon Jan 25 08:44:31 2021][debug] =BEGIN=SERVER RET======
[Mon Jan 25 08:44:31 2021][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM FRAG_LATENCY="10" PERIOD_LATENCY="1" ON="1" TYPE="CONF" CYCLE_LATENCY="60" TIMEOUT="30" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" />
  </OPTION>
  <RESPONSE>SEND</RESPONSE>
  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
  <PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
';
[Mon Jan 25 08:44:31 2021][debug] =END=SERVER RET======
[Mon Jan 25 08:44:31 2021][debug] PROLOG_FREQ has not changed since last process
[Mon Jan 25 08:44:31 2021][debug] Calling handlers : `prolog_reader'
[Mon Jan 25 08:44:31 2021][debug] [snmpscan] Calling snmp_prolog_reader
[Mon Jan 25 08:44:31 2021][debug] [download] Calling download_prolog_reader
[Mon Jan 25 08:44:31 2021][debug] [download] <?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM FRAG_LATENCY="10" PERIOD_LATENCY="1" ON="1" TYPE="CONF" CYCLE_LATENCY="60" TIMEOUT="30" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" />
  </OPTION>
  <RESPONSE>SEND</RESPONSE>
  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
  <PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
[Mon Jan 25 08:44:31 2021][debug] [download] Writing config file.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::AccessLog already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::DeviceID already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::IpDiscover already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Docker already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Jails already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Libvirt already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Lxc already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Parallels already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Qemu already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::SolarisLdoms already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::SolarisZones already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::VirtualBox already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareDesktop already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareESX already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareWorkstation already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Vmsystem already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Xen already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::XenCitrixServer already loaded.
[Mon Jan 25 08:44:31 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XL already loaded.

(..........Maximum length is 12000 characters..............)

Ocsinventory::Agent::Backend::Virtualization::Vmsystem
[Mon Jan 25 08:44:40 2021][debug] Running Ocsinventory::Agent::Backend::Virtualization::Xen
[Mon Jan 25 08:44:40 2021][debug] Ocsinventory::Agent::Backend::Virtualization::Xen has no run() function -> ignored
[Mon Jan 25 08:44:40 2021][debug] Calling handlers : `inventory_handler'
[Mon Jan 25 08:44:40 2021][debug] [download] Calling download_inventory_handler
[Mon Jan 25 08:44:40 2021][debug] Section HARDWARE has changed since last inventory
[Mon Jan 25 08:44:40 2021][debug] Section DRIVES has changed since last inventory
[Mon Jan 25 08:44:40 2021][debug] cleanXml changed content
[Mon Jan 25 08:44:40 2021][debug] sending XML
[Mon Jan 25 08:44:40 2021][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <ACCOUNTINFO>
      <KEYNAME>fields_3</KEYNAME>
      <KEYVALUE>sts-002</KEYVALUE>
    </ACCOUNTINFO>
    <ACCOUNTINFO>
      <KEYNAME>fields_8</KEYNAME>
      <KEYVALUE>8</KEYVALUE>
    </ACCOUNTINFO>
    <ACCOUNTINFO>
      <KEYNAME>TAG</KEYNAME>
      <KEYVALUE>NA</KEYVALUE>
    </ACCOUNTINFO>
    <ACCOUNTINFO>
      <KEYNAME>fields_4</KEYNAME>
      <KEYVALUE>ocs</KEYVALUE>
    </ACCOUNTINFO>
    <ACCOUNTINFO>
      <KEYNAME>fields_7</KEYNAME>
      <KEYVALUE>3</KEYVALUE>
    </ACCOUNTINFO>
    <BIOS>
      <ASSETTAG>Not Specified</ASSETTAG>
      <BDATE>04/01/2014</BDATE>
      <BMANUFACTURER>SeaBIOS</BMANUFACTURER>
      <BVERSION>rel-1.13.0-48-gd9c812dda519-prebuilt.qemu.org</BVERSION>
      <MMANUFACTURER></MMANUFACTURER>
      <MMODEL></MMODEL>
      <MSN></MSN>

(..................Your post contains too many links to external sites.............)

    <STORAGES>
      <DISKSIZE>0000</DISKSIZE>
      <FIRMWARE>2.5+</FIRMWARE>
      <MANUFACTURER>QEMU</MANUFACTURER>
      <MODEL>QEMU DVD-ROM</MODEL>
      <NAME>sr0</NAME>
      <SERIALNUMBER>QM00003</SERIALNUMBER>
      <TYPE>CD/DVD</TYPE>
    </STORAGES>
    <USERS>
      <LOGIN>root</LOGIN>
    </USERS>
    <VIDEOS>
      <CHIPSET>VGA compatible controller</CHIPSET>
      <MEMORY>16</MEMORY>
      <NAME>Device 1234:1111 </NAME>
    </VIDEOS>
  </CONTENT>
  <DEVICEID>glpi-2021-01-22-12-00-36</DEVICEID>
  <QUERY>INVENTORY</QUERY>
</REQUEST>

[Mon Jan 25 08:44:41 2021][debug] =BEGIN=SERVER RET======
[Mon Jan 25 08:44:41 2021][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
';
[Mon Jan 25 08:44:41 2021][debug] =END=SERVER RET======
[Mon Jan 25 08:44:41 2021][debug] Calling handlers : `end_handler'
[Mon Jan 25 08:44:41 2021][debug] [snmpscan] Calling snmp_end_handler
[Mon Jan 25 08:44:41 2021][debug] [download] Calling download_end_handler
[Mon Jan 25 08:44:41 2021][info] [download] Beginning work. I am 1565.
[Mon Jan 25 08:44:41 2021][info] [download] No more package to download.
[Mon Jan 25 08:44:41 2021][debug] [download] End of work...
[Mon 25 Jan 2021 09:01:01 AM CET] End of cron job (/sbin:/bin:/usr/sbin:/usr/bin)
[Mon 25 Jan 2021 10:01:02 AM CET] End of cron job (/sbin:/bin:/usr/sbin:/usr/bin)
in OCS Inventory NG agent for Unix by (180 points)

2 Answers

0 votes
Hi,

How was installed the agent ? rpm or manually ?

Regards

Frank
by (82.7k points)
0 votes
I tried 3 ways:

according ocs wiki:

1. rpm for cent 7

2. manually non-interactively

3. manually interactively
by (180 points)
 
Powered by Question2Answer
...