hi all
i want to decode base64 encoded text that i sent from zabbix_sender but when in Preprocessing step i return atob(value) i got [object Uint8Array]
i test with this custom script and just got same result
how can i decode base64 text in zabbix
i want to decode base64 encoded text that i sent from zabbix_sender but when in Preprocessing step i return atob(value) i got [object Uint8Array]
i test with this custom script and just got same result
Code:
try {
b64 = btoa("utf8 string");
utf8 = atob(b64);
return utf8;
}
catch (error) {
return {'error.name' : error.name, 'error.message' : error.message}
}
Comment