search for: su_flag_setint

Displaying 2 results from an estimated 2 matches for "su_flag_setint".

2014 Aug 30
1
snmp-ups and constants in snmp_info_t snmp2nut tables
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
2015 Mar 26
2
New snmp-ups subdriver for Huawei
...flags to set in addinfo + * info_len: length of strings if STR + * cmd value if CMD, multiplier otherwise + * OID: SNMP OID or NULL + * dfl: default value + * flags: snmp-ups internal flags (FIXME: ...) + * oid2info: lookup table between OID and NUT values + * setvar: variable to set for SU_FLAG_SETINT + * + * Example: + * { "input.voltage", 0, 0.1, ".1.3.6.1.4.1.705.1.6.2.1.2.1", "", SU_INPUT_1, NULL }, + * { "ups.status", ST_FLAG_STRING, SU_INFOSIZE, ".1.3.6.1.4.1.705.1.7.3.0", "", SU_FLAG_OK | SU_STATUS_BATT, onbatt_info }, + * +...