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.12.3 available

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

SNMP-SCAN-is-not-working-in-OCS-Inventory-2.8

OCS Agent Log

ocsinventory-agent --debug --nosoftware

[Thu Nov  5 16:21:55 2020][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.0

[Thu Nov  5 16:21:55 2020][debug] Log system initialised (File)

[Thu Nov  5 16:21:55 2020][debug] --scan-homedirs missing. Don't scan user directories

[Thu Nov  5 16:21:55 2020][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__cockpit-w23.c4sam.com_ocsinventory/ocsinv.adm

[Thu Nov  5 16:21:55 2020][debug] OCS Agent initialised

[Thu Nov  5 16:21:55 2020][debug] Turns hooks on for /etc/ocsinventory/modules.conf

[Thu Nov  5 16:21:55 2020][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.0

[Thu Nov  5 16:21:55 2020][debug] Log system initialised (File)

[Thu Nov  5 16:21:55 2020][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.0

[Thu Nov  5 16:21:55 2020][debug] Log system initialised (File)

[Thu Nov  5 16:21:55 2020][debug] Calling handlers : `start_handler'

[Thu Nov  5 16:21:55 2020][debug] [download] Calling download_start_handler

[Thu Nov  5 16:21:55 2020][debug]  - LWP loaded

[Thu Nov  5 16:21:55 2020][debug]  - LWP::Protocol::https loaded

[Thu Nov  5 16:21:55 2020][debug] [snmp] Calling snmp_start_handler

[Thu Nov  5 16:21:55 2020][debug]  - Net::SNMP loaded

[Thu Nov  5 16:21:55 2020][debug] Compress::Zlib is available.

[Thu Nov  5 16:21:55 2020][debug] Calling handlers : `prolog_writer'

[Thu Nov  5 16:21:55 2020][debug] sending XML

[Thu Nov  5 16:21:55 2020][debug] sending: <?xml version="1.0" encoding="UTF-8"?>

<REQUEST>

  <DEVICEID>cockpit-w23-2020-11-05-15-02-33</DEVICEID>

  <QUERY>PROLOG</QUERY>

</REQUEST>

[Thu Nov  5 16:21:55 2020][debug] =BEGIN=SERVER RET======

[Thu Nov  5 16:21:55 2020][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>

<REPLY>

  <OPTION>

    <NAME>IPDISCOVER</NAME>

    <PARAM IPDISC_LAT="100">192.168.11.0</PARAM>

  </OPTION>

  <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>

';

[Thu Nov  5 16:21:55 2020][debug] =END=SERVER RET======

[Thu Nov  5 16:21:55 2020][debug] PROLOG_FREQ has not changed since last process

[Thu Nov  5 16:21:55 2020][debug] Calling handlers : `prolog_reader'

[Thu Nov  5 16:21:55 2020][debug] [download] Calling download_prolog_reader

[Thu Nov  5 16:21:55 2020][debug] [download] <?xml version='1.0' encoding='UTF-8'?>

<REPLY>

  <OPTION>

    <NAME>IPDISCOVER</NAME>

    <PARAM IPDISC_LAT="100">192.168.11.0</PARAM>

  </OPTION>

  <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>

[Thu Nov  5 16:21:55 2020][debug] [download] Writing config file.

[Thu Nov  5 16:21:55 2020][debug] [snmp] Calling snmp_prolog_reader

[Thu Nov  5 16:21:55 2020][debug]  - ipdiscover found

[Thu Nov  5 16:21:55 2020][debug]  - nmap found

[Thu Nov  5 16:21:55 2020][debug] Ocsinventory::Agent::Backend::IpDiscover::Nmap ignored

[Thu Nov  5 16:21:55 2020][debug] Ocsinventory::Agent::Backend::OS::AIX ignored

[Thu Nov  5 16:21:55 2020][debug] Ocsinventory::Agent::Backend::OS::BSD ignored

[Thu Nov  5 16:21:55 2020][debug]  - dmidecode found

[Thu Nov  5 16:21:55 2020][debug]  - dmidecode found

[Thu Nov  5 16:21:55 2020][debug]  - Sys::Hostname loaded

[Thu Nov  5 16:21:55 2020][debug]  - ipmitool found

[Thu Nov  5 16:21:55 2020][debug]  - Net::IP qw(:PROC) loaded

[Thu Nov  5 16:21:55 2020][debug] Ocsinventory::Agent::Backend::OS::Generic::Ipmi ignored

.....................

[Thu Nov  5 16:22:51 2020][debug] =BEGIN=SERVER RET======

[Thu Nov  5 16:22:51 2020][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>

<REPLY>

  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>

</REPLY>

';

[Thu Nov  5 16:22:51 2020][debug] =END=SERVER RET======

[Thu Nov  5 16:22:51 2020][debug] Calling handlers : `end_handler'

[Thu Nov  5 16:22:51 2020][debug] [download] Calling download_end_handler

[Thu Nov  5 16:22:51 2020][debug] [snmp] Calling snmp_end_handler

[Thu Nov  5 16:22:51 2020][info] [download] Beginning work. I am 30091.

[Thu Nov  5 16:22:51 2020][info] [download] No more package to download.

[Thu Nov  5 16:22:51 2020][debug] [download] End of work...

OCS Invention Agent (Debian 10.6)

ocsinventory-agent --version

Ocsinventory unified agent for UNIX, Linux and MacOSX (2.8.0)

ocsinventory-agent.cfg

server=https://xxx.c4sam.com/ocsinventory

ca=/opt/c4sam/certs/xxx.c4sam.com.crt

basevardir=/var/lib/ocsinventory-agent

ssl=1

debug=1

tag=SERVER

logfile=/var/log/ocsinventory-agent.log

OCS Inventory Server (Docker Container)

  • PHP Version :
  • Web Server :
  • Database Server :
  • Version OCSReports:
  • 7.3.24
  • Apache/2.4.6 (CentOS) PHP/7.3.24 mod_perl/2.0.11 Perl/v5.16.3
  • MySQL Community Server (GPL) version 5.7.28
  • 2.8
in OCS Inventory NG agent for Unix by (160 points)

7 Answers

0 votes
Hi,

I'm having the same problem, but I noticed that you do not show the  snmp's parameters in the "ocsinventory-agent.cfg" file.
Do you setted this file?

Kind regards,
by (420 points)
0 votes
Hi,

post content of Modules.conf file

Regards

Frank
by (90.2k points)
0 votes

SNMP SCAN is now working put, I can't see it in the GUI.

/usr/bin/ocsinventory-agent --version

Ocsinventory unified agent for UNIX, Linux and MacOSX (2.8.1)

/usr/bin/ocsinventory-agent --debug

[debug] Calling handlers : `end_handler'

[debug] [download] Calling download_end_handler

[debug] [snmp] Calling snmp_end_handler

[debug] [snmp] Snmp: Scanning network

[debug] [snmp] Snmp: Ending Scanning network

[debug] [snmp] Scanning 192.168.0.248 device

[info] [download] Beginning work. I am 25343.

[info] [download] Option turned off. Exiting.

[debug] [download] End of work...

[debug] [snmp] Failure in scanning Device 192.168.0.248: no snmp communication

[debug] [snmp] Scanning 192.168.0.2 device

[debug] [snmp] Failure in scanning Device 192.168.0.2: no snmp communication

[debug] [snmp] Scanning 192.168.0.52 device

[debug] [snmp] Failure in scanning Device 192.168.0.52: no snmp communication

[debug] [snmp] Scanning 192.168.0.66 device

[debug] [snmp] Failure in scanning Device 192.168.0.66: no snmp communication

[debug] [snmp] Scanning 192.168.0.101 device

[debug] [snmp] Failure in scanning Device 192.168.0.101: no snmp communication

[debug] [snmp] Scanning 192.168.0.157 device

[debug] [snmp] Failure in scanning Device 192.168.0.157: no snmp communication

[debug] [snmp] Scanning 192.168.0.130 device

[debug] [snmp] Failure in scanning Device 192.168.0.130: no snmp communication

[debug] [snmp] Scanning 192.168.0.172 device

[debug] [snmp] Failure in scanning Device 192.168.0.172: no snmp communication

[debug] [snmp] Scanning 192.168.0.1 device

[debug] [snmp] Failure in scanning Device 192.168.0.1: no snmp communication

[debug] [snmp] Scanning 192.168.0.227 device

[debug] [snmp] Launching 8072

[debug] [snmp] Running Linux (8072) MIB module

[debug] [snmp] Launching Host_Resources_Mib

[debug] [snmp] Running Host Resources MIB module

[debug] [snmp] Launching Default

[debug] [snmp] Running Default MIB module 

[debug] [snmp] Scanning 192.168.0.171 device

[debug] [snmp] Failure in scanning Device 192.168.0.171: no snmp communication

[info] [snmp] No more SNMP device to scan

[debug] sending XML

[debug] sending: <?xml version="1.0" encoding="UTF-8"?>

<REQUEST>

  <CONTENT>

    <DEVICE>

      <COMMON>

        <CONTACT>Me &lt;*Emails are not allowed*&gt;</CONTACT>

        <DESCRIPTION>Linux OSS-SNO-GITLAB 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64</DESCRIPTION>

        <IPADDR>192.168.0.227</IPADDR>

        <LOCATION>Sitting on the Dock of the Bay</LOCATION>

        <MACADDR>be:cf:04:f0:bc:7d</MACADDR>

        <NAME>OSS-SNO-GITLAB</NAME>

        <SNMPDEVICEID>55834173ca81254d64ad414fc38b6fd9</SNMPDEVICEID>

        <TYPE>Linux</TYPE>

        <UPTIME>2 hours, 21:57.12</UPTIME>

      </COMMON>

      <COMPUTERS>

        <SYSTEM>Linux</SYSTEM>

      </COMPUTERS>

      <MEMORIES></MEMORIES>

    </DEVICE>

  </CONTENT>

  <DEVICEID>OSS-SNO-MASTER-2021-03-26-16-00-37</DEVICEID>

  <QUERY>SNMP</QUERY>

</REQUEST>

[debug] [snmp] End snmp_end_handler :)

/var/log/ocsinventory-server/activity.log

Fri Mar 26 18:30:56 2021;1770;1004;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;ipdiscover;incoming

Fri Mar 26 18:30:56 2021;1770;100;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;prolog;accepted

Fri Mar 26 18:30:56 2021;1770;311;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;session;started

Fri Mar 26 18:31:34 2021;1771;319;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;session;found

Fri Mar 26 18:31:34 2021;1771;104;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;inventory;incoming

Fri Mar 26 18:31:34 2021;1771;113;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;inventory;u:repository

Fri Mar 26 18:31:34 2021;1771;113;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;inventory;u:networks

Fri Mar 26 18:31:34 2021;1771;113;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;inventory;u:drives

Fri Mar 26 18:31:35 2021;1771;320;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;session;end

Fri Mar 26 18:31:35 2021;1771;101;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;inventory;transmitted

Fri Mar 26 18:34:35 2021;1766;100;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;snmp;inventory incoming

Fri Mar 26 18:34:35 2021;1766;102;OSS-SNO-MASTER-2021-03-26-16-00-37;172.22.0.1;OCS-NG_unified_unix_agent_v2.8.1;snmp;inventory transmitted

I have no idea what I have done wrong.

by (160 points)
0 votes
Hi

Some errors in apache error log file ?
by (90.2k points)
0 votes
Hi!

What did you do that SNMP SCAN start to work ?
by (140 points)
0 votes
I have the same problem. SNMP auto discovery is NOT working. Can someone guide what needs to be done to get this SNMP working? TIA
by (220 points)
0 votes
I have checked SNMP on multiple versions of the OCS Inventory server and tried different common MIBs and OIDs. However, the devices are still not showing up in the SNMP inventory list. Please let us know if there are any resolutions for this. Thanks in advance! .
by (180 points)
 
Powered by Question2Answer
...