Ad Widget

Collapse

zabbix-agent hangs after monitored service is restarted

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VeeEnDee
    Junior Member
    • Jul 2022
    • 7

    #1

    zabbix-agent hangs after monitored service is restarted

    Hi all,
    I have got a problem with zabbix agent (version 5.0 - 5.2 - 6.0 the same behavior):
    Enviroment : OS Centos 7
    Host is being monitored with default Linux template. There is a service on that host that is being monitored: native command of that service extracts data in json format from local socket and that json is being parsed on zabbix server. (Active check type)
    Everything work fine until that service crashes\restarts for any reason and then it works fine, and command for stat extraction works fine,but this crash\restart causes zabbix agent stuck and not sending any data at all about host until zabbix agent is restarted.
    Zabbix agent service is active and running.
    There is nothing in logs except:
    Code:
    egexp_exec() failed with error -8
    regexp_exec() failed with error -8
    regexp_exec() failed with error -22
    regexp_exec() failed with error -2

    Does anybody knows hat these errors mean?
    Or maybe what to check when zabbix agent hangs again?
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    What is the key of the zabbix item that monitors the service? Is it a UserParameter? If so, what is the UserParameter config?

    Comment


    • VeeEnDee
      VeeEnDee commented
      Editing a comment
      UserParameter=kamctl.stats_get, sudo kamctl rpc stats.fetch all
Working...