Hi everyone,
I’ve created several sensors for certain device, but when using ./poller.php I’ve discovered that all the sensors have the same value.
./discovery.php seems to return the proper value for each OID, but not ./poller.php.
On the Web UI, all the sensors have the same value.
I pasted here part of the ./discovery.php and ./poller.php to better understand.
← ./discovery.php →
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/calix’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.1’]
32
Discover sensor: .1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.1, 1.1.1, exa, Gpon 1/1/1, snmp, 1, 1, , 32, (limits: LL: , LW: , W: , H: ), rrd_type = GAUGE
SQL[SELECT COUNT(sensor_id) FROM sensors
WHERE poller_type
= ? AND sensor_class
= ? AND device_id
= ? AND sensor_type = ? AND sensor_index
= ? [“snmp”,“temperature”,702,“exa”,“1.1.1”] 0.93ms]
SQL[SELECT * FROM sensors
WHERE sensor_class
= ? AND device_id
= ? AND sensor_type
= ? AND sensor_index
= ? [“temperature”,702,“exa”,“1.1.1”] 0.67ms]
.SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/calix’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.2’]
0
Discover sensor: .1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.2, 1.1.2, exa, Gpon 1/1/2, snmp, 1, 1, , 0, (limits: LL: , LW: , W: , H: ), rrd_type = GAUGE
SQL[SELECT COUNT(sensor_id) FROM sensors
WHERE poller_type
= ? AND sensor_class
= ? AND device_id
= ? AND sensor_type = ? AND sensor_index
= ? [“snmp”,“temperature”,702,“exa”,“1.1.2”] 0.94ms]
SQL[SELECT * FROM sensors
WHERE sensor_class
= ? AND device_id
= ? AND sensor_type
= ? AND sensor_index
= ? [“temperature”,702,“exa”,“1.1.2”] 0.6ms]
.SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/calix’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.3’]
0
Discover sensor: .1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.3, 1.1.3, exa, Gpon 1/1/3, snmp, 1, 1, , 0, (limits: LL: , LW: , W: , H: ), rrd_type = GAUGE
SQL[SELECT COUNT(sensor_id) FROM sensors
WHERE poller_type
= ? AND sensor_class
= ? AND device_id
= ? AND sensor_type = ? AND sensor_index
= ? [“snmp”,“temperature”,702,“exa”,“1.1.3”] 0.6ms]
SQL[SELECT * FROM sensors
WHERE sensor_class
= ? AND device_id
= ? AND sensor_type
= ? AND sensor_index
= ? [“temperature”,702,“exa”,“1.1.3”] 0.59ms]
.SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/calix’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.4’]
0
Discover sensor: .1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.4, 1.1.4, exa, Gpon 1/1/4, snmp, 1, 1, , 0, (limits: LL: , LW: , W: , H: ), rrd_type = GAUGE
SQL[SELECT COUNT(sensor_id) FROM sensors
WHERE poller_type
= ? AND sensor_class
= ? AND device_id
= ? AND sensor_type = ? AND sensor_index
= ? [“snmp”,“temperature”,702,“exa”,“1.1.4”] 0.72ms]
← END →
← ./poller.php →
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OUQntea’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/calix’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.1’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.2’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.3’ ‘.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.1.1.4’]
..4.1.63...1 = 32
..4.1.63...2 = 32
..4.1.63...3 = 32
..4.1.63...4 = 32
← END →
Thank you !