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

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

[snmp] Scanning never start

Hi to everyone,

I am trying to configure SNMP functionality. I followed the steps of the wiki but SNMP scan is not working.
The computer on which I've installed the agent has been choosen ipdiscover, communities are set up, but SNMP scan never start.
I made a snmp query from the computer on which I installed the agent to another computer on the network that I want SNMP inventory and get correct answer (nothing stop traffic SNMP on that network).

I put some other information bellow.

Thanks in advance!

Isabel.

 

OCS Server: 2.1.2 (running in CentOS 5.6)

OCS Agent: 2.1.1 (running in CentOS 6.7)

activity.log in server while ocsinventory-agent running in client:

Tue Oct 27 14:48:33 2015;24411;1004;prueba-2015-10-27-06-06-59;192.168.16.237;OCS-NG_unified_unix_agent_v2.1.1;ipdiscover;incoming
Tue Oct 27 14:48:33 2015;24411;100;prueba-2015-10-27-06-06-59;192.168.16.237;OCS-NG_unified_unix_agent_v2.1.1;prolog;accepted
Tue Oct 27 14:48:33 2015;24411;311;prueba-2015-10-27-06-06-59;192.168.16.237;OCS-NG_unified_unix_agent_v2.1.1;session;started
Tue Oct 27 14:48:52 2015;24407;319;prueba-2015-10-27-06-06-59;192.168.16.237;OCS-NG_unified_unix_agent_v2.1.1;session;found
Tue Oct 27 14:48:52 2015;24407;104;prueba-2015-10-27-06-06-59;192.168.16.237;OCS-NG_unified_unix_agent_v2.1.1;inventory;incoming
Tue Oct 27 14:48:52 2015;24407;320;prueba-2015-10-27-06-06-59;192.168.16.237;OCS-NG_unified_unix_agent_v2.1.1;session;end
Tue Oct 27 14:48:52 2015;24407;101;prueba-2015-10-27-06-06-59;192.168.16.237;OCS-NG_unified_unix_agent_v2.1.1;inventory;transmitted

No error_log in apache present during the test.

in IP Discover by (210 points)

2 Answers

0 votes
Agent_logs in debug mode:

[Tue Oct 27 10:53:03 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Tue Oct 27 10:53:03 2015][debug] Log system initialised (File)
[Tue Oct 27 10:53:03 2015][debug] --scan-homedirs missing. Don't scan user directories
[Tue Oct 27 10:53:03 2015][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__datacenter.prueba.local_ocsinventory/ocsinv.adm
[Tue Oct 27 10:53:03 2015][debug] OCS Agent initialised
[Tue Oct 27 10:53:03 2015][debug] Turns hooks on for /etc/ocsinventory/modules.conf
[Tue Oct 27 10:53:03 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Tue Oct 27 10:53:03 2015][debug] Log system initialised (File)
[Tue Oct 27 10:53:03 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Tue Oct 27 10:53:03 2015][debug] Log system initialised (File)
[Tue Oct 27 10:53:03 2015][debug] Calling handlers : `start_handler'
[Tue Oct 27 10:53:03 2015][debug] [snmp] Calling snmp_start_handler
[Tue Oct 27 10:53:03 2015][debug]  - Net::SNMP loaded
[Tue Oct 27 10:53:03 2015][debug] [download] Calling download_start_handler
[Tue Oct 27 10:53:03 2015][debug]  - LWP loaded
[Tue Oct 27 10:53:03 2015][debug]  - Crypt::SSLeay loaded
[Tue Oct 27 10:53:03 2015][debug] Compress::Zlib is available.
[Tue Oct 27 10:53:03 2015][debug] Calling handlers : `prolog_writer'
[Tue Oct 27 10:53:03 2015][debug] sending XML
[Tue Oct 27 10:53:03 2015][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>moodle2-prueba-2015-10-27-06-06-59</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[Tue Oct 27 10:53:03 2015][debug] =BEGIN=SERVER RET======
[Tue Oct 27 10:53:03 2015][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <OPTION>
    <NAME>IPDISCOVER</NAME>
    <PARAM IPDISC_LAT="100">192.168.16.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>
  <PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
';
[Tue Oct 27 10:53:03 2015][debug] =END=SERVER RET======
[Tue Oct 27 10:53:03 2015][debug] PROLOG_FREQ has not changed since last process
[Tue Oct 27 10:53:03 2015][info] No support detected. Registration key: N/A
[Tue Oct 27 10:53:03 2015][debug] Calling handlers : `prolog_reader'
[Tue Oct 27 10:53:03 2015][debug] [snmp] Calling snmp_prolog_reader
[Tue Oct 27 10:53:03 2015][debug] [download] Calling download_prolog_reader
[Tue Oct 27 10:53:03 2015][debug] [download] <?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <OPTION>
    <NAME>IPDISCOVER</NAME>
    <PARAM IPDISC_LAT="100">192.168.16.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>
  <PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
[Tue Oct 27 10:53:03 2015][debug] [download] Writing config file.
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::IpDiscover::IpDiscover ignored
[Tue Oct 27 10:53:04 2015][debug]  - nmap found
[Tue Oct 27 10:53:04 2015][debug]  - Nmap::Parser loaded
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::AIX ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::BSD ignored
[Tue Oct 27 10:53:04 2015][debug]  - dmidecode found
[Tue Oct 27 10:53:04 2015][debug]  - dmidecode found
[Tue Oct 27 10:53:04 2015][debug]  - Sys::Hostname loaded
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Ipmi ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Lspci ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Lsusb ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::BSDpkg ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Deb ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Gentoo ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Pacman ignored
[Tue Oct 27 10:53:04 2015][debug]  - rpm found
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Printers::Cups ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Screen ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::HPUX ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::ARM ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::Alpha ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::MIPS ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::PowerPC ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::SPARC ignored
[Tue Oct 27 10:53:04 2015][debug]  - /proc/cpuinfo can be read
[Tue Oct 27 10:53:04 2015][debug]  - arch found
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::m68k ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::LSB ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::ArchLinux ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::CentOS ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Debian ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Fedora ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Gentoo ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Knoppix ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Mandrake ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Mandriva ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Redhat ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Slackware ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::SuSE ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Trustix ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Ubuntu ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::VmWare ignored
[Tue Oct 27 10:53:04 2015][debug]  - hostname found
[Tue Oct 27 10:53:04 2015][debug]  - /etc/resolv.conf can be read
[Tue Oct 27 10:53:04 2015][debug]  - df found
[Tue Oct 27 10:53:04 2015][debug]  - pvs found
[Tue Oct 27 10:53:04 2015][debug]  - /proc/meminfo can be read
[Tue Oct 27 10:53:04 2015][debug]  - ifconfig found
[Tue Oct 27 10:53:04 2015][debug]  - ifconfig found
[Tue Oct 27 10:53:04 2015][debug]  - route found
[Tue Oct 27 10:53:04 2015][debug]  - Net::IP qw(:PROC) loaded
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Sounds ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::3ware ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::Adaptec ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::HP ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::Lsilogic ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::ServeRaid ignored
[Tue Oct 27 10:53:04 2015][debug]  - mount found
by (210 points)
[Tue Oct 27 10:53:04 2015][debug]  - /proc/uptime can be read
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::MacOS ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::OS::Solaris ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::Libvirt ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::Parallels ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::Qemu ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::SolarisZones ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::VirtualBox ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareDesktop ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareESX ignored
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareWorkstation ignored
[Tue Oct 27 10:53:04 2015][debug]  - dmidecode found
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XM ignored
[Tue Oct 27 10:53:04 2015][debug] Running Ocsinventory::Agent::Backend::AccessLog
[Tue Oct 27 10:53:04 2015][debug] Running Ocsinventory::Agent::Backend::DeviceID
[Tue Oct 27 10:53:04 2015][debug] Running Ocsinventory::Agent::Backend::IpDiscover
[Tue Oct 27 10:53:04 2015][debug] Ocsinventory::Agent::Backend::IpDiscover has no run() function -> ignored
[Tue Oct 27 10:53:04 2015][debug] Running Ocsinventory::Agent::Backend::IpDiscover::Nmap
[Tue Oct 27 10:53:04 2015][debug] Scanning the 192.168.16.0 network
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.93 found using Nmap. Adding informations in XML
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.168 found using Nmap. Adding informations in XML
...
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.141 found using Nmap. Adding informations in XML
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.243 found using Nmap. Adding informations in XML
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.69 found using Nmap. Adding informations in XML
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.16 found using Nmap. Adding informations in XML
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.157 found using Nmap. Adding informations in XML
[Tue Oct 27 10:53:20 2015][debug] Host 192.168.16.149 found using Nmap. Adding informations in XML
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Bios
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Memory
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Ports
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Slots
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::UUID
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Hostname
[Tue Oct 27 10:53:20 2015][debug]  - Sys::Hostname loaded
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging
[Tue Oct 27 10:53:20 2015][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging has no run() function -> ignored
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::ByHand
[Tue Oct 27 10:53:20 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::RPM
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Users
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386
[Tue Oct 27 10:53:21 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::i386 has no run() function -> ignored
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386::CPU
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB
[Tue Oct 27 10:53:21 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB has no run() function -> ignored
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Oracle
[Tue Oct 27 10:53:21 2015][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Oracle has no run() function -> ignored
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Domains
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Drives
[Tue Oct 27 10:53:21 2015][debug]  - dumpe2fs found
[Tue Oct 27 10:53:21 2015][debug]  - dumpe2fs found
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::LVM
[Tue Oct 27 10:53:21 2015][debug]  - pvs found
[Tue Oct 27 10:53:21 2015][debug]  - vgs found
[Tue Oct 27 10:53:21 2015][debug]  - lvs found
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Mem
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Network::IPv4
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Network::Networks
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Storages
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Sys
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Uptime
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::Virtualization::Vmsystem
[Tue Oct 27 10:53:21 2015][debug] Running Ocsinventory::Agent::Backend::Virtualization::Xen
[Tue Oct 27 10:53:21 2015][debug] Ocsinventory::Agent::Backend::Virtualization::Xen has no run() function -> ignored
[Tue Oct 27 10:53:21 2015][debug] Calling handlers : `inventory_handler'
[Tue Oct 27 10:53:21 2015][debug] [download] Calling download_inventory_handler
[Tue Oct 27 10:53:21 2015][debug] Section HARDWARE has changed since last inventory
[Tue Oct 27 10:53:21 2015][debug] sending XML
[Tue Oct 27 10:53:21 2015][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <ACCOUNTINFO>
      <KEYNAME>TAG</KEYNAME>
      <KEYVALUE>pruebas</KEYVALUE>
    </ACCOUNTINFO>
    <BIOS>
      <ASSETTAG>No Asset Tag</ASSETTAG>
      <BDATE>04/14/2014</BDATE>
      <BMANUFACTURER>Phoenix Technologies LTD</BMANUFACTURER>
      <BVERSION>6.00</BVERSION>

...

 

  <DEVICEID>moodle2-prueba-2015-10-27-06-06-59</DEVICEID>
  <QUERY>INVENTORY</QUERY>
</REQUEST>
[Tue Oct 27 10:53:21 2015][debug] =BEGIN=SERVER RET======
[Tue Oct 27 10:53:21 2015][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
';

[Tue Oct 27 10:53:21 2015][debug] =END=SERVER RET======
[Tue Oct 27 10:53:22 2015][debug] Calling handlers : `end_handler'
[Tue Oct 27 10:53:22 2015][debug] [snmp] Calling snmp_end_handler
[Tue Oct 27 10:53:22 2015][debug] [download] Calling download_end_handler
[Tue Oct 27 10:53:22 2015][info] [download] Beginning work. I am 7195.
[Tue Oct 27 10:53:22 2015][info] [download] No more package to download.
[Tue Oct 27 10:53:22 2015][debug] [download] End of work...
did you enable snmp in /etc/ocsinventory/modules.conf ?
Yes, it's enabled.

I have my OCS-inventory-server integrated with a CAS server. Maybe something in the authentication is stopping with CAS?
0 votes
Can you verify if you have all the perl packages for the snmp module on the client side.
by (2.1k points)
Yes, all the packages installed and verified.
I have ocsinventory with glpi integrated, and finnally i used fusioninventory plygin after a lot of days trying to use snmp in ocs.
 
Powered by Question2Answer
...