I was using pyzabbix and trying to use trigger.get
method to get all trigger info, but returned 504 Gateway Timeout exception. It never happened before, when I tried to get all the single host trigger info by specifying the host name using filter
keyword it worked well. I thought it resulted from the increasing amount of hosts which means large number of trigger it returned. I have about 1800 hosts so far. Any solutions to this problem?
Asked
Active
Viewed 511 times
0

J.Wang
- 1,241
- 3
- 13
- 17
1 Answers
1
While Zabbix API in general has performance issues, and there are various PHP parameters to control timeouts like max_execution_time, HTTP response code 504 sounds suspicious. If you are using a proxy (maybe transparent, reverse etc), check the timeouts there and consider hitting the Zabbix API directly.

Richlv
- 3,954
- 1
- 17
- 21