manual:config:items:preprocessing:javascript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
manual:config:items:preprocessing:javascript [2021/02/05 08:35]
martins-v md5 hash calculation function (ZBXNEXT-6183)
manual:config:items:preprocessing:javascript [2021/02/19 08:07]
martins-v sha256 hash function (ZBXNEXT-6443)
Line 35: Line 35:
 </​code>​ </​code>​
  
-Each script has a 10 second execution timeout (depending on the script it might take longer for the timeout to trigger); exceeding it will return error. ​Also a 10 megabyte heap limit is enforced.+Each script has a 10 second execution timeout (depending on the script it might take longer for the timeout to trigger); exceeding it will return error. ​A 64 megabyte heap limit is enforced ​(10MB before Zabbix 5.2.5).
  
 The JavaScript preprocessing step bytecode is cached and reused when the step is applied next time. Any changes to the item's preprocessing steps will cause the cached script to be reset and recompiled later. The JavaScript preprocessing step bytecode is cached and reused when the step is applied next time. Any changes to the item's preprocessing steps will cause the cached script to be reset and recompiled later.
Line 74: Line 74:
  
   * md5(string) - calculates the MD5 hash of a string. This function is supported since Zabbix 5.2.5   * md5(string) - calculates the MD5 hash of a string. This function is supported since Zabbix 5.2.5
 +  * sha256(string) - calculates the SHA256 hash of a string. This function is supported since Zabbix 5.2.5
  
 See also: [[:​manual/​config/​items/​preprocessing/​javascript/​javascript_objects|Additional JavaScript objects]] See also: [[:​manual/​config/​items/​preprocessing/​javascript/​javascript_objects|Additional JavaScript objects]]