zabbix-tools / go-zabbix

Go bindings for the Zabbix API
GNU General Public License v2.0
106 stars 70 forks source link

Seems like some internal timeout while executing queries #29

Closed imbouncin closed 4 years ago

imbouncin commented 4 years ago

Hi. Im newbie so sorry for stupid question.

I'm trying to get data from db, for example Hosts or Triggers. And execution time of same query differ by 10s, for example, 1 time out of 10 attempts i get good time = 0.1s and next 9 times i get 10.1s It seems like some internal timeout = 10s Can someone give me tips what can i try to solve this problem Query code is pretty standard

params := zabbix.TriggerGetParams{
   GetParameters: zabbix.GetParameters{TextSearch: searchFields, Filter: filterFields},
   GroupIDs: []string{"13"},
   MonitoredOnly: true,
}
triggers, err := session.GetTriggers(params)
imbouncin commented 4 years ago

oops I'm stupid, seems like it was some server/network issue