I'm monitoring a UPS with zabbix via SNMP. And when I read the MAC address i get it like 0:3:xx:xx:xx:xx i want it like 00:03:xx:xx:xx:xx. I tried it with regex formula in Regular expression with Preproscesing but I can't get it to work. My formula:
works on regex101.com but not on zabbix, also I can't use the /g flag. I can't also use 0$0 because zabbix just writes 0$0 instead of 00:03:xx:xx:xx:xx
Code:
/\b[0-9,a-f]\b/g
Comment