[comment]: # translation:outdated

[comment]: # ({new-98157c48})
# 24 What's new in Zabbix 5.0.20

[comment]: # ({/new-98157c48})

[comment]: # ({new-12b84f81})

#### Sleep method for JavaScript engine

A new `Zabbix.sleep()` method of Zabbix object has been implemented into JavaScript engine. 
It will allow to pause JavaScript execution if required. For example, it may be useful in 
webhooks when working with two separate services, which have a delay between data flows. 
The method accepts milliseconds as argument, e. g. to delay for 15 seconds:

    Zabbix.sleep(15000);

See also: [Additional JavaScript objects](manual/config/items/preprocessing/javascript/javascript_objects)

[comment]: # ({/new-12b84f81})

[comment]: # ({new-a7fce27e})

#### pfSense monitoring template

A new template *pfSense SNMP* is now available for out-of-the-box monitoring. 

You can get this template:

-   In *Configuration* → *Templates* in new installations;
-   If you are upgrading from previous versions, you can download new
    templates from Zabbix [Git
    repository](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates)
    or find them in the `templates` directory of the downloaded latest
    Zabbix version. Then, while in *Configuration* → *Templates* you can
    import them manually into Zabbix.

    [comment]: # ({/block2})

[comment]: # ({/new-a7fce27e})

[comment]: # ({new-92713615})
#### Item changes

Native support for the [items](/manual/config/items/itemtypes/zabbix_agent) **system.hw.chassis**, **system.hw.devices**, **vfs.dir.count** and **vfs.dir.size** has been added to Zabbix agent 2. These items, used with Zabbix agent 2, now support concurrent check processing.

[comment]: # ({/new-92713615})
