Hello,
APC UPS can be monitored via SNMP if they have a NIC installed.
I'm using the "upsBasicStateOutputState" value that returns a 64 chars string representing a binary set of flags (OID is .1.3.6.1.4.1.318.1.1.1.11.1.0).
I try to explain better: all charachters can be 0 or 1, depending of the position in this string, they mean different things (I report only the first 4):
Flag 1: Abnormal Condition Present
Flag 2: On Battery
Flag 3: Low Battery
Flag 4: On Line
etc etc etc
Problem: if I want to set a trigger for the "On Battery" status I should check the 4th flag but the triggers' formula does not have a mid$ left$ or right$ like in BASIC language for instance.
Do you have an idea how to solve it?
B/R Lovespider
APC UPS can be monitored via SNMP if they have a NIC installed.
I'm using the "upsBasicStateOutputState" value that returns a 64 chars string representing a binary set of flags (OID is .1.3.6.1.4.1.318.1.1.1.11.1.0).
I try to explain better: all charachters can be 0 or 1, depending of the position in this string, they mean different things (I report only the first 4):
Flag 1: Abnormal Condition Present
Flag 2: On Battery
Flag 3: Low Battery
Flag 4: On Line
etc etc etc
Problem: if I want to set a trigger for the "On Battery" status I should check the 4th flag but the triggers' formula does not have a mid$ left$ or right$ like in BASIC language for instance.
Do you have an idea how to solve it?
B/R Lovespider
Comment