I noticed that
includes/discovery/sensors/current/apc.inc.php tests for the presence of
atsConfigPhaseTableIndex to decide if it has APC PowerNet-MIB ATS snmp objects:
$oids = snmp_walk($device, 'atsConfigPhaseTableIndex', '-OsqnU', 'PowerNet-MIB');
At least the one device I have (“AP7750 02”) –
APC Web/SNMP Management Card (MB:v3.6.8 PF:v2.6.4 PN:apc_hw02_aos_264.bin AF1:v2.6.1 AN1:apc_hw02_ats_261.bin MN:AP9617 HR:A10 SN: ZA0625029245 MD:06/16/2006)
does not have atsConfigPhaseTableIndex, so it fails this test and doesn’t discover atsOutputCurrent etc.
If I manually change the test in apc.inc.php to look for something else like atsConfigProductName instead, it discovers it OK and polls fine.
$oids = snmp_walk($device, ‘atsConfigProductName’, ‘-OsqnU’, ‘PowerNet-MIB’);
It’s a one line change but there’s probably a more correct way to do it and I don’t want to maintain a local modification, plus maybe this would help other people?