nut icon indicating copy to clipboard operation
nut copied to clipboard

Battery statuses and system statuses (New Driver creation)

Open TheKaban opened this issue 5 years ago • 1 comments

Hello!) Having difficulty writing a new Sub-Driver for SNMP-UPS.

Please tell me, for battery statuses, should I use SU_STATUS_BATT, and for system statuses should UPS use SU_STATUS_PWR? For both cases info_type will be ups.status? Do I get it right?

For my ups, I have the following statuses: Battery Statuses: {1, "UNKNOWN"}, {2, "BATTERY-NORMAL"}, {3, "BATTERY-LOW"}, {4, "BATTERY-DEPLETED"}, {5, "BATTERY-DISCHARGING"}, {6, "BATTERY-FAILURE"}

System Statuses: {1, "POWER-ON"}, {2, "STAND-BY"}, {3, "BY-PASS"}, {4, "LINE"}, {5, "BATTERY"}, {6, "BATTRY-TEST"}, {7, "FAULT"}, {8, "CONVERTER"}, {9, "ECO"}, {10, "SHUTDOWN"}, {11, "ON-BOOSTER"}, {12, "ON-REDUCER"}, {13, "OTHER"}

How can I apply these statuses in NUT?

From this, I only realized that: LINE == OL BATTERY == OB But I would like to understand what the other statuses are equal to. Can they help me find a mark on these questions?

Thank you all for your attention and help! Good luck

TheKaban avatar Nov 05 '19 15:11 TheKaban