Hi Adam,

 

I added test entries in apc.inc

 

$config['mibs'][$mib]['sensor']['atsOutputVoltage']['tables'][] = array(

  'table'   => 'atsOutputPhaseTable',

  'class'   => 'voltage',

  'descr'   => 'Output-test',

  'oid'     => 'atsOutputVoltage',

  'oid_num' => '.1.3.6.1.4.1.318.1.1.8.5.4.3.1.3,',

  'min'     => 210,

  'scale'   => 1, // in V

 

Debug show correct voltage in discovery.php, the voltage is shown in the observium, after finishing the pooler, the value disappears, why ???, for me debug poller does not bring anything, maybe I cannot interpret it

 

o PowerNet-MIB         atsOutputVoltage [

CMD[/usr/bin/snmpwalk -v1 -c *** -Pu -Ih -OQUsb -m PowerNet-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/apc 'udp':'p101-sts-rack01':'161' atsOutputPhaseTable]

 

CMD EXITCODE[0]

CMD RUNTIME[0.3465s]

STDOUT[

atsOutputPhaseTableIndex.1.1.1 = 1

atsOutputPhaseIndex.1.1.1 = phase1

atsOutputVoltage.1.1.1 = 229

atsOutputCurrent.1.1.1 = 11

atsOutputMaxCurrent.1.1.1 = -1

atsOutputMinCurrent.1.1.1 = -1

atsOutputLoad.1.1.1 = -1

atsOutputMaxLoad.1.1.1 = -1

atsOutputMinLoad.1.1.1 = -1

atsOutputPercentLoad.1.1.1 = -1

atsOutputMaxPercentLoad.1.1.1 = -1

atsOutputMinPercentLoad.1.1.1 = -1

atsOutputPower.1.1.1 = 251

atsOutputMaxPower.1.1.1 = -1

atsOutputMinPower.1.1.1 = -1

atsOutputPercentPower.1.1.1 = 6

atsOutputMaxPercentPower.1.1.1 = -1

atsOutputMinPercentPower.1.1.1 = -1

atsOutputPhaseState.1.1.1 = normal

]

SNMP STATUS[TRUE]

Discover sensor: voltage, p101-sts-rack01, .1.3.6.1.4.1.318.1.1.8.5.4.3.1.3,.1.1.1, 1.1.1, PowerNet-MIB-atsOutputVoltage, Output-test, SCALE: 1, LIMITS: (, , , ), CURRENT: 229, snmp, ,

 

SQL[SELECT COUNT(`sensor_id`) FROM `sensors`

                   WHERE `poller_type`= 'snmp' AND `sensor_class` = 'voltage' AND `device_id` = '468' AND `sensor_type` = 'PowerNet-MIB-atsOutputVoltage' AND `sensor_index` = '1.1.1']

SQL RUNTIME[0.00069189s]

 

SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'voltage' AND `device_id` = '468' AND `sensor_type` = 'PowerNet-MIB-atsOutputVoltage' AND `sensor_index` = '1.1.1']

SQL RUNTIME[0.00062299s]

 

SQL[SELECT `attrib_value` FROM `entity_attribs` WHERE `entity_type` = 'sensor' AND `entity_id` = '2972' AND `attrib_type` = 'sensor_addition']

SQL RUNTIME[0.00030804s]

 

SQL[UPDATE `sensors` set `sensor_descr` ='Output-test' WHERE `sensor_id` = '2972']

SQL RUNTIME[0.00069880s]

U

SQL[INSERT INTO `eventlog` (`device_id`,`entity_id`,`entity_type`,`timestamp`,`severity`,`message`)  VALUES ('468','2972','sensor',NOW(),'6','Sensor updated: voltage PowerNet-MIB-atsOutputVoltage 1.1.1 Output-test')]

SQL RUNTIME[0.00063300s]

]

 

 

 

 

Regards

Jacek Dąbrowski

 

From: observium <observium-bounces@observium.org> On Behalf Of Adam Armstrong
Sent: Tuesday, April 17, 2018 2:03 PM
To: Observium <observium@observium.org>
Subject: Re: [Observium] APC ATS - Output/Input voltage

 

You might want to start by actually using the command I gave you, rather than a rough interpretation of it.

 

adam.

 

------ Original Message ------

From: Jacek.Dabrowski@selgros.pl

To: observium@observium.org

Sent: 2018-04-17 09:06:55

Subject: Re: [Observium] APC ATS - Output/Input voltage

 

Hi,

I'm not an expert, but here is a mish-mash (from other devices  APC-UPS !!!), Adam, you can look at the attachment.

 

 

 

Regards,

Jacek Dąbrowski

 

From: observium <observium-bounces@observium.org> On Behalf Of Adam Armstrong
Sent: Monday, April 16, 2018 10:34 PM
To: Observium <observium@observium.org>
Subject: Re: [Observium] APC ATS - Output/Input voltage

 

It seems likely that this device is failing to respond to these OIDs using GET, but they worked using WALK (as used during discovery, and I assume OidView).

 

You should verify you can snmpget these OIDs before going any further.

 

You can get the exact commandline we use to query them by doing ./poller.php -h <host> -m sensors -d

 

adam.

 

------ Original Message ------

From: Jacek.Dabrowski@selgros.pl

To: observium@observium.org

Sent: 2018-04-16 09:46:32

Subject: [Observium] APC ATS - Output/Input voltage

 

Hello,



I have a problem with Rack-mount Transfer Switches from APC

Observium shows zero voltage but OidView returns the correct values, what is wrong ?

 

 

 

 

 

 

 

Best regards,

Jacek Dąbrowski