Hi i try to get on OCS Server data from my devices that not support OCS Agent so i setup snmp server on the host and give permissions to my host that are doing the snmp scan to get the values and send do OCS Server.
when i do a snmwalk comand host agent to the snmp host i get the value so snmp is ok.
[root@ocsinventory-ng ~]# snmpwalk -Os -c xxxxx -v 2c 192.168.xx.xx sysName
sysName.0 = STRING: vm-ecreator.example.com
[root@ocsinventory-ng ~]#
My log on ocsagent i see that device is scanning
[Fri Feb 5 03:54:36 2021][debug] [snmpscan] Scanning 192.168.xx.xx device
More logs from my ocs-agent:
[Fri Feb 5 03:52:22 2021][debug] [download] Calling download_start_handler
[Fri Feb 5 03:52:22 2021][debug] - LWP loaded
[Fri Feb 5 03:52:22 2021][debug] - LWP::Protocol::https loaded
[Fri Feb 5 03:52:22 2021][debug] [snmpscan] Calling snmp_start_handler
[Fri Feb 5 03:52:22 2021][debug] - Net::SNMP loaded
[Fri Feb 5 03:52:22 2021][debug] Compress::Zlib is available.
[Fri Feb 5 03:52:22 2021][debug] Calling handlers : `prolog_writer'
[Fri Feb 5 03:52:22 2021][debug] sending XML
[Fri Feb 5 03:52:22 2021][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<PARAM CONDITION_VALUE="sysName" CONDITION_OID="1.3.6.1.2.1.1.5" TYPE="SNMP_TYPE" LABEL_NAME="NOME_SERVIDOR" TABLE_TYPE_NAME="snmp_servidores_snmp" OID="1.3.6.1.2.1.1.5" TYPE_NAME="Servidores_SNMP" /> <PARAM USERNAME="" NAME="xxxx" AUTHPASSWD="" AUTHKEY="" TYPE="COMMUNITY" VERSION="2c" /> <NAME>SNMP</NAME>