From Spencer, 5 Years ago, written in Plain Text.
Embed
  1. TL;DR
  2. 'lgpPduPsLineEntryEpLNTenths' => '1196', ==================== value
  3. Cur 1196, Low: null, Low Warn: null, Warn: null, High: null ========================= all set to null
  4. "sensor_limit":137.54,"sensor_limit_low":101.66,"sensor_current":119.6 =========== why are these not null too?
  5.  
  6. #### output from discovery.php -v -d
  7. <snip>
  8. Data lgpPduPsLineTable:  
  9. array (
  10.   '1.1.1' =>
  11.   array (
  12.     'lgpPduPsLineEntryId' => '1',
  13.     'lgpPduPsLineEntryLine' => '1',
  14.     'lgpPduPsLineEntryEpLNTenths' => '1196', ==================== value
  15.     'lgpPduPsLineEntryEpLN' => '119',
  16.     'lgpPduPsLineEntryEc' => '204',
  17.     'lgpPduPsLineEntryEcHundredths' => '2045',
  18.     'lgpPduPsLineEntryEcThrshldUndrAlarm' => '0',
  19.     'lgpPduPsLineEntryEcThrshldOvrWarn' => '75',
  20.     'lgpPduPsLineEntryEcThrshldOvrAlarm' => '80',
  21.     'lgpPduPsLineEntryEcAvailBeforeAlarm' => '35',
  22.     'lgpPduPsLineEntryEcUsedBeforeAlarm' => '682',
  23.     'lgpPduPsLineEntryEcAvailBeforeAlarmHundredths' => '355',
  24.   ),
  25. )  
  26. Final sensor value: 1196  
  27. Cur 1196, Low: null, Low Warn: null, Warn: null, High: null ========================= all set to null
  28. Discover sensor: .1.3.6.1.4.1.476.1.42.3.8.30.40.1.19.1.1.1, lgpPduPsLineEntryEpLNTenths.1.1.1, liebert, AC RMS 1, snmp, 10, 1, , 119.6  
  29. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","voltage",675,"liebert","lgpPduPsLineEntryEpLNTenths.1.1.1"] 1.06ms]
  30.  
  31. SQL[INSERT IGNORE INTO `sensors` (`poller_type`,`sensor_class`,`device_id`,`sensor_oid`,`sensor_index`,`sensor_type`,`sensor_descr`,`sensor_divisor`,`sensor_multiplier`,`sensor_limit`,`sensor_limit_low`,`sensor_current`,`group`)  VALUES (:poller_type,:sensor_class,:device_id,:sensor_oid,:sensor_index,:sensor_type,:sensor_descr,:sensor_divisor,:sensor_multiplier,:sensor_limit,:sensor_limit_low,:sensor_current,:group) {"poller_type":"snmp","sensor_class":"voltage","device_id":675,"sensor_oid":".1.3.6.1.4.1.476.1.42.3.8.30.40.1.19.1.1.1","sensor_index":"lgpPduPsLineEntryEpLNTenths.1.1.1","sensor_type":"liebert","sensor_descr":"AC RMS 1","sensor_divisor":10,"sensor_multiplier":1,"sensor_limit":137.54,"sensor_limit_low":101.66,"sensor_current":119.6,"group":""} 30.84ms]
  32.  
  33. ===================== "sensor_limit":137.54,"sensor_limit_low":101.66,"sensor_current":119.6 =========== why are these not null too?