I have a Perl script that asks ZABBIX for all active triggers. This request is taking very long at times, sometimes never finishing. To combat this for now, I've restricted the statement_timeout for the zabbix DB user in PostgreSQL.

Here is the Perl snippet:
Code:
        my $json_request
...