SNMPSIM Failed

Hi,

Currently I am working out to push my script into Github. However, there is an error when creating test data.

Below are debug from ./scripts/save-test-data.php.

librenms@vbtops-srv-01:~$ ./scripts/save-test-data.php -o adva_fsp3kr7 -v v1 -d
Starting snmpsim listening on 127.1.6.1:1161...
/usr/local/bin/snmpsimd.py --data-dir=/opt/librenms/tests/snmpsim/ --agent-udpv4-endpoint=127.1.6.1:1161 --logging-method=file:/tmp/snmpsimd.log
Pausing 10 seconds to allow snmpsim to initialize...

OS: adva_fsp3kr7
Module: all
Variant: v1

Updating os_def.cache
SQL[select * from `devices` where `hostname` = ? limit 1 ["127.1.6.1"] 11.38ms]

SQL[select * from `devices` where `device_id` = ? limit 1 [0] 0.52ms]

SQL[select exists(select * from `devices` where `hostname` = ?) as `exists` ["127.1.6.1"] 12.03ms]

SQL[insert into `devices` (`hostname`, `version`, `community`, `port`, `disabled`, `transport`, `poller_group`, `os`, `status_reason`, `sysName`, `port_association_mode`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ["127.1.6.1","v2c","adva_fsp3kr7_v1",1161,1,"udp",0,"generic","","127.1.6.1",1] 2.16ms]

SQL[insert into `eventlog` (`reference`, `type`, `datetime`, `severity`, `message`, `username`, `device_id`) values (?, ?, ?, ?, ?, ?, ?) [null,"system","2023-08-17 13:45:11",3,"Device 127.1.6.1 has been created","",32] 15.27ms]

Added device: 32
SQL[select * from `devices` where `device_id` = ? limit 1 [32] 1.72ms]

SQL[select * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null [32] 5.77ms]

127.1.6.1 32 generic [FPING] '/usr/bin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '500' '-O' '0' '127.1.6.1'

response: xmt/rcv/%loss = 3/3/0%, min/avg/max = 0.036/0.04/0.042
SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:SNMP-VACM-MIB' '-v2c' '-c' 'adva_fsp3kr7_v1' '-OQXUte' 'udp:127.1.6.1:1161' 'SNMPv2-MIB::sysObjectID.0']
Exitcode: 1 ["MIB search path: /opt/librenms/mibs\nCannot find module (SNMP-VACM-MIB): At line 12 in (none)\nTimeout: No Response from udp:127.1.6.1:1161.\n"]

MIB search path: /opt/librenms/mibs
Cannot find module (SNMP-VACM-MIB): At line 12 in (none)
Timeout: No Response from udp:127.1.6.1:1161.

SNMP query failed. Exit Code: 1 Empty: true Bad String: Timeout: No Response from udp:127.1.6.1:1161.


SQL[select * from `devices` where `device_id` = ? limit 1 [32] 6.38ms]

SQL[select * from `devices_attribs` where `devices_attribs`.`device_id` in (32) [] 7.29ms]

===========================================
Component | Version
--------- | -------
LibreNMS  | 23.7.0-75-g8ee1a2034 (2023-08-14T21:16:45+08:00)
DB Schema | 2023_08_02_120455_vendor_ouis_unique_index (255)
PHP       | 8.1.2-1ubuntu2.13
Python    | 3.10.12
Database  | MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

Starting polling run:

Hostname:  127.1.6.1
ID:        32
OS:        generic
IP:        127.1.6.1

Enabled graphs (0):


#### Start Alerts ####
#### End Alerts (0.0233s) ####

### Start Device Groups ###
### End Device Groups (0.0062s) ###


>>> Polled 127.1.6.1 (32) in 7.331 seconds <<<
Saved to /opt/librenms/tests/data/adva_fsp3kr7_v1.json
Ready for testing!

After check and open the json file, it appear only ‘null’

Snmprec file : https://pastebin.com/nNB56FMg

Hope you guys can help.

Cheers!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.