Skip to content

Latest commit

 

History

History

javascript_preprocessing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
↩️ Back

JAVASCRIPT PREPROCESSING

Often Zabbix items gather data that is unprepared for processing or it is simply "dirty". Therefore, it is important to prepare the data to make it suitable for further processing and ultimately for exploration and visualization.

After the data is collected, we can clean it with Zabbix preprocessing steps and one such step is the custom JavaScript script. Unfortunately, Zabbix does not support Python for processing, nor Shell. So, we are stuck with JavaScript. But thit is not a bad thing, though. Zabbix JavaScript is implemented using the Duktape JavaScript engine and provides additional Zabbix objects. You may have to resort to old methods or unconventional ways to handle the input data, though.

Keep in mind that JavaScript preprocessing uses a function body and the input value is always a string.

JavaScript preprocessing is done by invoking JavaScript function with a single parameter 'value' and user provided function body. The preprocessing step result is the value returned from this function (...).


INDEX