Stuck making test data

I am trying to make a new OS for Eltek power system platform. Actually the os works pretty well but I have troubles to finalize librenms tests. collect-snmp-data.php tries to find values snmpEngineTime.0 and hrSystemUptime.0 and there is no that kind of values at all. Is there clever way to solve this?

Oids .1.3.6.1.6.3.10.2.1.3.0 and .1.3.6.1.2.1.25.1.1.0 are outside of the range.

What I have understood wrong? :smiley:

-Mikael

–DEBUG–
(venv) librenms@librenms:~$ ./scripts/collect-snmp-data.php -h 192.168.100.21 -o eltek -d
OS: eltek
Module(s): all

Capturing Data: Updating os_def.cache… Done
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: snmpEngineTime.0

192.168.100.21 75 eltek [FPING] /usr/bin/fping -e -q -c 3 -p 500 -t 500 192.168.100.21
Array
(
[xmt] => 3
[rcv] => 3
[loss] => 0
[min] => 0.26
[max] => 0.33
[avg] => 0.28
[exitcode] => 0
)
SNMP Check response code: 0
Attempting to initialize OS: eltek
OS initilized as Generic

Modules status: Global+ OS Device

Load disco module core

SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUQn -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysName.0 sysObjectID.0 sysDescr.0]
...0 = sysName
...0 = ..4.1.12148.9
.
.*.0 = WebPower(402414.003) 4.11, Apr 4 2016 OS:2.7

Runtime for discovery module ‘core’: 0.0320 seconds with 1080 bytes
SNMP: [2/0.06s] MySQL: [6/0.02s] RRD: [0/0.00s]

Unload disco module core

Modules status: Global+ OS- Device Module [ os ] disabled on os.

Modules status: Global+ OS- Device Module [ ports ] disabled on os.

Modules status: Global+ OS- Device Module [ ports-stack ] disabled on os.

Modules status: Global+ OS- Device Module [ entity-physical ] disabled on os.

Modules status: Global- OS- Device Module [ entity-state ] disabled on os.

Modules status: Global+ OS- Device Module [ processors ] disabled on os.

Modules status: Global+ OS- Device Module [ mempools ] disabled on os.

Modules status: Global+ OS- Device Module [ cisco-vrf-lite ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-mac-accounting ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-pw ] disabled on os.

Modules status: Global- OS- Device Module [ vrf ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-cef ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-sla ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-cbqos ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-otv ] disabled on os.

Modules status: Global+ OS- Device Module [ ipv4-addresses ] disabled on os.

Modules status: Global+ OS- Device Module [ ipv6-addresses ] disabled on os.

Modules status: Global- OS- Device Module [ route ] disabled on os.

Modules status: Global+ OS- Device Module [ sensors ] disabled on os.

Modules status: Global+ OS- Device Module [ storage ] disabled on os.

Modules status: Global+ OS- Device Module [ hr-device ] disabled on os.

Modules status: Global+ OS- Device Module [ discovery-protocols ] disabled on os.

Modules status: Global+ OS- Device Module [ arp-table ] disabled on os.

Modules status: Global- OS- Device Module [ discovery-arp ] disabled on os.

Modules status: Global- OS- Device Module [ junose-atm-vp ] disabled on os.

Modules status: Global+ OS- Device Module [ bgp-peers ] disabled on os.

Modules status: Global+ OS- Device Module [ vlans ] disabled on os.

Modules status: Global- OS- Device Module [ vmware-vminfo ] disabled on os.

Modules status: Global- OS- Device Module [ libvirt-vminfo ] disabled on os.

Modules status: Global- OS- Device Module [ toner ] disabled on os.

Modules status: Global+ OS- Device Module [ ucd-diskio ] disabled on os.

Modules status: Global- OS- Device Module [ applications ] disabled on os.

Modules status: Global+ OS- Device Module [ services ] disabled on os.

Modules status: Global+ OS- Device Module [ stp ] disabled on os.

Modules status: Global+ OS- Device Module [ ntp ] disabled on os.

Modules status: Global- OS- Device Module [ loadbalancers ] disabled on os.

Modules status: Global- OS- Device Module [ mef ] disabled on os.

Modules status: Global+ OS- Device Module [ wireless ] disabled on os.

Modules status: Global+ OS- Device Module [ fdb-table ] disabled on os.

Discovered in 1.123 seconds

Hostname: 192.168.100.21
Device ID: 75
OS: eltek

[FPING] /usr/bin/fping -e -q -c 3 -p 500 -t 500 192.168.100.21
Array
(
[xmt] => 3
[rcv] => 3
[loss] => 0
[min] => 0.22
[max] => 0.46
[avg] => 0.34
[exitcode] => 0
)
SNMP Check response code: 0
Modules status: Global+ OS Device

Load poller module core

SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OQnUt -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysUpTime.0 sysLocation.0 sysContact.0 sysName.0 sysObjectID.0 sysDescr.0]
...0 = 52752841
...0 = sysLocation
...0 = sysContact
...0 = sysName
...0 = ..4.1.12148.9
.
.*.0 = WebPower(402414.003) 4.11, Apr 4 2016 OS:2.7

SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OQnUst -m HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 snmpEngineTime.0 hrSystemUptime.0]

Uptime seconds: 527528
RRD[update /opt/librenms/rrd/192.168.100.21/uptime.rrd N:527528]
Uptime: 6 days, 2h 32m 8s
Google geocode engine being used
Bad lat / lng received

Runtime for poller module ‘core’: 0.2693 seconds with 16000 bytes
SNMP: [2/0.08s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload poller module core

RRD[update /opt/librenms/rrd/192.168.100.21/poller-perf-core.rrd N:0.26926803588867]
Modules status: Global- OS- Device Module [ unix-agent ] disabled on os.

Modules status: Global+ OS- Device Module [ os ] disabled on os.

Modules status: Global+ OS- Device Module [ ipmi ] disabled on os.

Modules status: Global+ OS- Device Module [ sensors ] disabled on os.

Modules status: Global+ OS- Device Module [ processors ] disabled on os.

Modules status: Global+ OS- Device Module [ mempools ] disabled on os.

Modules status: Global+ OS- Device Module [ storage ] disabled on os.

Modules status: Global+ OS- Device Module [ netstats ] disabled on os.

Modules status: Global+ OS- Device Module [ hr-mib ] disabled on os.

Modules status: Global+ OS- Device Module [ ucd-mib ] disabled on os.

Modules status: Global+ OS- Device Module [ ipSystemStats ] disabled on os.

Modules status: Global+ OS- Device Module [ ports ] disabled on os.

Modules status: Global+ OS- Device Module [ bgp-peers ] disabled on os.

Modules status: Global- OS- Device Module [ junose-atm-vp ] disabled on os.

Modules status: Global- OS- Device Module [ toner ] disabled on os.

Modules status: Global+ OS- Device Module [ ucd-diskio ] disabled on os.

Modules status: Global- OS- Device Module [ wifi ] disabled on os.

Modules status: Global+ OS- Device Module [ wireless ] disabled on os.

Modules status: Global+ OS- Device Module [ ospf ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-ipsec-flow-monitor ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-remote-access-monitor ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-cef ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-sla ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-mac-accounting ] disabled on os.

Modules status: Global- OS- Device Module [ cipsec-tunnels ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-ace-loadbalancer ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-ace-serverfarms ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-asa-firewall ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-voice ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-cbqos ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-otv ] disabled on os.

Modules status: Global- OS- Device Module [ cisco-vpdn ] disabled on os.

Modules status: Global- OS- Device Module [ netscaler-vsvr ] disabled on os.

Modules status: Global- OS- Device Module [ aruba-controller ] disabled on os.

Modules status: Global+ OS- Device Module [ entity-physical ] disabled on os.

Modules status: Global- OS- Device Module [ entity-state ] disabled on os.

Modules status: Global+ OS- Device Module [ applications ] disabled on os.

Modules status: Global- OS- Device Module [ mib ] disabled on os.

Modules status: Global+ OS- Device Module [ stp ] disabled on os.

Modules status: Global+ OS- Device Module [ ntp ] disabled on os.

Modules status: Global- OS- Device Module [ loadbalancers ] disabled on os.

Modules status: Global- OS- Device Module [ mef ] disabled on os.

Start Device Groups

Groups Added:
Groups Removed:

End Device Groups

Enabling graphs: uptime
RRD[update /opt/librenms/rrd/192.168.100.21/ping-perf.rrd N:0.34]
RRD[update /opt/librenms/rrd/192.168.100.21/poller-perf.rrd N:1.342]
Updating 192.168.100.21

Polled in 1.342 seconds

OIDs to capture Array
(
[sysDescr.0_get] => Array
(
[oid] => sysDescr.0
[mib] => SNMPv2-MIB
[method] => get
)

[sysObjectID.0_get] => Array
    (
        [oid] => sysObjectID.0
        [mib] => SNMPv2-MIB
        [method] => get
    )

[sysName.0_get] => Array
    (
        [oid] => sysName.0
        [mib] => SNMPv2-MIB
        [method] => get
    )

[sysUpTime.0_get] => Array
    (
        [oid] => sysUpTime.0
        [mib] => SNMPv2-MIB
        [method] => get
    )

[sysLocation.0_get] => Array
    (
        [oid] => sysLocation.0
        [mib] => SNMPv2-MIB
        [method] => get
    )

[sysContact.0_get] => Array
    (
        [oid] => sysContact.0
        [mib] => SNMPv2-MIB
        [method] => get
    )

[snmpEngineTime.0_get] => Array
    (
        [oid] => snmpEngineTime.0
        [mib] => HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB
        [method] => get
    )

[hrSystemUptime.0_get] => Array
    (
        [oid] => hrSystemUptime.0
        [mib] => HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB
        [method] => get
    )

)
sysDescr.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysDescr.0]
...0 = STRING: "WebPower(402414.003) 4.11, Apr 4 2016 OS:2.7 "

sysObjectID.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysObjectID.0]
...0 = OID: .*.4.1.12148.9

sysName.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysName.0]
...0 = STRING: “sysName”

sysUpTime.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysUpTime.0]
...0 = Timeticks: (52752882) 6 days, 2:32:08.82

sysLocation.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysLocation.0]
...0 = STRING: “sysLocation”

sysContact.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 sysContact.0]
...0 = STRING: “sysContact”

snmpEngineTime.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 snmpEngineTime.0]
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.6.3.10.2.1.3.0

hrSystemUptime.0SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUneb -Ih -m HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/eltek:/opt/librenms/mibs/eltek udp:HOSTNAME:161 hrSystemUptime.0]
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.25.1.1.0

Updated snmprec data /opt/librenms/tests/snmpsim/eltek.snmprec

Verify this file does not contain any private data before submitting!
–DEBUG–

As far I can see, the test data is collected. Dont worry about those oids not responding.