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 ?
[cid:image002.jpg@01D3D570.2D830110]
[cid:image004.jpg@01D3D570.2D830110]
[cid:image009.jpg@01D3D570.2D830110]
[cid:image010.jpg@01D3D570.2D830110]
Best regards, Jacek Dąbrowski

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

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.plmailto:Jacek.Dabrowski@selgros.pl To: observium@observium.orgmailto: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 ?
[cid:image001.jpg@01D3D633.3B5C3090]
[cid:image002.jpg@01D3D633.3B5C3090] [cid:image003.jpg@01D3D633.3B5C3090]
[cid:image004.jpg@01D3D633.3B5C3090]
Best regards, Jacek Dąbrowski

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 mailto:Jacek.Dabrowski@selgros.pl
To: observium@observium.org mailto: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

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] ]
[cid:image002.jpg@01D3D6EB.46A651C0]
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.plmailto:Jacek.Dabrowski@selgros.pl To: observium@observium.orgmailto: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.orgmailto:observium-bounces@observium.org> On Behalf Of Adam Armstrong Sent: Monday, April 16, 2018 10:34 PM To: Observium <observium@observium.orgmailto: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.plmailto:Jacek.Dabrowski@selgros.pl To: observium@observium.orgmailto: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 ?
[cid:image007.jpg@01D3D6E9.D3A61F80]
[cid:image008.jpg@01D3D6E9.D3A61F80] [cid:image009.jpg@01D3D6E9.D3A61F80]
[cid:image010.jpg@01D3D6E9.D3A61F80]
Best regards, Jacek Dąbrowski

I'm now totally confused about what you're trying to achieve... and I'm fairly sure Adam will have the same issue.
You're being asked to run snmpget/walk commands like the poller, but start adding definitions to a file... which definitely don't belong in there currently as all PowerNet-MIB is discovered through code... then claim it doesn't work. :O
On 4/18/2018 8:00 AM, Jacek.Dabrowski@selgros.pl wrote:
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***

I like order, as something is supported cool to make all sensors work, especially when it comes to critical infrastructure.
Pozdrawiam Jacek Dąbrowski
From: observium observium-bounces@observium.org On Behalf Of Tom Laermans Sent: Wednesday, April 18, 2018 9:12 AM To: observium@observium.org Subject: Re: [Observium] APC ATS - Output/Input voltage
I'm now totally confused about what you're trying to achieve... and I'm fairly sure Adam will have the same issue.
You're being asked to run snmpget/walk commands like the poller, but start adding definitions to a file... which definitely don't belong in there currently as all PowerNet-MIB is discovered through code... then claim it doesn't work. :O
On 4/18/2018 8:00 AM, Jacek.Dabrowski@selgros.plmailto:Jacek.Dabrowski@selgros.pl wrote: 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
participants (3)
-
Adam Armstrong
-
Jacek.Dabrowski@selgros.pl
-
Tom Laermans