jjmartres / Zabbix

A great collection of Zabbix scripts and templates
GNU General Public License v2.0
873 stars 585 forks source link

No data after "connection restored" #142

Open zenichev opened 6 years ago

zenichev commented 6 years ago

Hi community.

I experience a problem with "no data" after losing and restoring the connection to zabbix agent.

First, I see the error (server log): "18651:20180406:161932.508 Zabbix agent item "kamailio.core.totalusers" on host "sip.domain.name" failed: first network error, wait for 15 seconds"

Then following row appears (usually in 5-10 seconds after error above): "18655:20180406:161947.848 resuming Zabbix agent checks on host "sip.domain.name": connection restored" There are no rows in agent's log when the this issue appears.

I don't ask about, why there are connections loss. I want to know why there is no data after connection is restored.

I have 10+ monitored servers in my network, all of them are monitored with z.agents. Every day all of them (zabbix agents) are to be restarted (at night) and so that, zabbix server usually notices connections loss and mark hosts as unreachable, after z.agents get back they are marked with "connection restored", but there is no data after that (no data from all of the items, not only my custom user parameters, but others like proc.cpu.util etc).

Of course I can disable restarting of agents, but the same issue appears when the connection is lost by any other reason.

The only way to solve it - is to restart zabbix server (not agents).

I use debug lvl 5 to parse the logs, but cannot see any errors on the server, nor on the agents. Any hints will be gladly accepted.

xenadmin commented 6 years ago

I would say, this doesn't belong here, but in the Zabbix Forums. If you post it there, let me know! Until then I would guess that Zabbix server marks your items as unsupported and doesn't refresh them as fast as you wish: image

zenichev commented 6 years ago

Actually is 1s: screenshot from 2018-04-06 17-01-11

xenadmin commented 6 years ago

Then my best hint would be, that this GitHub Repo is definitely the wrong place to ask for help. Zabbix has a Forum for that: https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems

zenichev commented 6 years ago

@xenadmin You're absolutely right. Thanks.