Hello,
i use the APC Template NUC2 (9631 Card) from Zabbix Share.
The template does not recognize if the battery is defect or subtracted.
The SNMP OID 1.3.6.1.4.1.318.1.1.1.11.1.1.0 is the only info String for this info on Flag 33.
APC support say the Flag 33 for No Batteries Attached or Defect is the only way to monitor the disaster
When battery ok and connected is the 64 bit SNMP String:
0001010000000000001000000000000000000000000000000010000000000000
When battery defect or not connected is the 64 bit SNMP String:
0001010000000000001000000000000010000000000000000010000000000000
My problem is now a trigger set up.
I have tested the following:
{Template SNMP APC:upsBasicStateOutputState.regexp(@APC)} >>> With global RegExp APC = (?=^.{32}(1)) = TRUE (The global test Works the Trigger not.
With lokal regexp in Trigger:
{Template SNMP APC:upsBasicStateOutputState.regexp((?<=^.{32})(1) )}
(({Template SNMP APC :upsBasicStateOutputState.regexp((?<=^.{32})})<>0)
{Template SNMP APC :upsBasicStateOutputState.regexp(^.{32}(1))}
Nothing works.
EDIT: Tested on Zabbix: 3.0.5 and 3.2.3 on Debian 8
i use the APC Template NUC2 (9631 Card) from Zabbix Share.
The template does not recognize if the battery is defect or subtracted.
The SNMP OID 1.3.6.1.4.1.318.1.1.1.11.1.1.0 is the only info String for this info on Flag 33.
APC support say the Flag 33 for No Batteries Attached or Defect is the only way to monitor the disaster
When battery ok and connected is the 64 bit SNMP String:
0001010000000000001000000000000000000000000000000010000000000000
When battery defect or not connected is the 64 bit SNMP String:
0001010000000000001000000000000010000000000000000010000000000000
My problem is now a trigger set up.
I have tested the following:
{Template SNMP APC:upsBasicStateOutputState.regexp(@APC)} >>> With global RegExp APC = (?=^.{32}(1)) = TRUE (The global test Works the Trigger not.
With lokal regexp in Trigger:
{Template SNMP APC:upsBasicStateOutputState.regexp((?<=^.{32})(1) )}
(({Template SNMP APC :upsBasicStateOutputState.regexp((?<=^.{32})})<>0)
{Template SNMP APC :upsBasicStateOutputState.regexp(^.{32}(1))}
Nothing works.
EDIT: Tested on Zabbix: 3.0.5 and 3.2.3 on Debian 8
Comment