[Nut-upsdev] snmp-ups and constants in snmp_info_t snmp2nut tables

Charles Lepple clepple at gmail.com
Tue Sep 2 13:03:43 UTC 2014


On Aug 30, 2014, at 6:40 AM, Erik Hedgren <ehedgren at gmail.com> wrote:

> Hi all,
> 
> Trying to add support for my unit, which is a 3-phase UPS.
> I can't find any oids that holds that data so I can determine that, so I
> think I need to add it statically.
> 
> I've tried the following, (nut-2.7.2)
> ...
> { "input.phases", 0, 1.0, NULL, "3", SU_FLAG_SETINT, NULL,  &input_phases },
> ...

You might need SU_FLAG_ABSENT for variables that don't have OIDs. Not sure if that just sets the dstate "input.phases" variable, or if it would affect input_phases as well.

-- 
Charles Lepple
clepple at gmail






More information about the Nut-upsdev mailing list