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

Erik Hedgren ehedgren at gmail.com
Sat Aug 30 10:40:36 UTC 2014


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 },
...

That ends up as (snmp-ups -a foo -DDDD)
...
   0.177686     getting data: input.phases ((null))
   0.177690     su_ups_get: input.phases (null)
...

How do I add a constant value to {input|output|bypass}_phases ?

//Erik



More information about the Nut-upsdev mailing list