Ad Widget

Collapse

Zabbix agent is not available

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aleksey.ishchenko
    Senior Member
    • May 2020
    • 187

    #1

    Zabbix agent is not available

    В веб интерфейсе алерт, что недоступен агент на прокси, но я понять не могу почему
    в конслоли показывает, что запущен
    [zabbix@zabbix-msk zabbix]$ systemctl status zabbix-agent.service
    ● zabbix-agent.service - Zabbix Agent
    Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
    Active: active (running) since Ср 2020-12-02 13:26:40 +05; 19h ago
    Process: 49114 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=0/SUCCESS)
    Process: 49117 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
    Main PID: 49119 (zabbix_agentd)
    CGroup: /system.slice/zabbix-agent.service
    ├─49119 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
    ├─49120 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
    ├─49121 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
    ├─49122 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
    ├─49123 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
    └─49124 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]

    дек 02 13:26:40 zabbix-msk systemd[1]: Stopped Zabbix Agent.
    дек 02 13:26:40 zabbix-msk systemd[1]: Starting Zabbix Agent...
    дек 02 13:26:40 zabbix-msk systemd[1]: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
    дек 02 13:26:40 zabbix-msk systemd[1]: Started Zabbix Agent.

    смущает это вот Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
    Файл есть, но в нем только цифры
  • ponnuchelvam
    Junior Member
    • Sep 2019
    • 3

    #2
    Hi Team, I am also getting agent.ping.nodata(7m) trigger is throwing lot of false alert. we able to see the data collection but still we are getting this false alert. is there any solution to fix the issue. Also, May i know how this trigger working like?. We are running Zabbix 5.0.5 with 52 proxy?. Is it anyway related to unreachablepoller setting, we have value as 1 for unreachablepoller.

    Comment

    • rydimlogistic
      Junior Member
      • Dec 2020
      • 5

      #3
      We are running Zabbix 5.0.5 with 52 proxy see no problem

      Comment

      • Kos
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Aug 2015
        • 3404

        #4
        Начну с конца, так проще :-)
        Originally posted by aleksey.ishchenko
        смущает это вот Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
        Файл есть, но в нем только цифры
        Вот это-то, как раз, нормально. Это сообщения вообще не от Zabbix-агента, а от systemd, через который он запускается как служба (service). И в юнит-файле соответствующей службы, по всей видимости, сказано, что контролировать процесс нужно по его номеру процесса (PID), который будет лежать в указанном файле. Этот файл создаётся лишь при запуске процесса и при останове удаляется.Так что последовательность сообщений:
        дек 02 13:26:40 zabbix-msk systemd[1]: Starting Zabbix Agent...
        дек 02 13:26:40 zabbix-msk systemd[1]: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
        дек 02 13:26:40 zabbix-msk systemd[1]: Started Zabbix Agent.
        - вполне нормальная и достаточно стандартная: systemd начал запуск службы, не обнаружил (пока?) PID-файл, затем соответствующий процесс таки запустился и этот PID-файл создал, к полному удовлетворению systemd.

        В веб интерфейсе алерт, что недоступен агент на прокси, но я понять не могу почему
        С этим уже сложнее, т.к. недостаточно данных. Если под "прокси" имеется в виду Zabbix-прокси, то агентов на них рекомендуется мониторить через сам же этот Zabbix-прокси. Соответственно, нужно, с одной стороны, через веб-интерфейс в свойствах хоста выставлять IP-адрес либо DNS-имя, доступные со стороны Zabbix-прокси, а также явно указывать, что хост мониторится через прокси, а с другой стороны, в конфиг-файле Zabbix-агента в параметрах "Server=" и "ServerActive=" ссылаться не на Zabbix-сервер, а на Zabbix-прокси.

        Comment

        • aleksey.ishchenko
          Senior Member
          • May 2020
          • 187

          #5
          ### Option: ServerActive
          #<----->List of comma delimited IPort (or DNS nameort) pairs of Zabbix servers and Zabbix proxies for active checks.
          #<----->If port is not specified, default port is used.
          #<----->IPv6 addresses must be enclosed in square brackets if port for that host is specified.
          #<----->If port is not specified, square brackets for IPv6 addresses are optional.
          #<----->If this parameter is not specified, active checks are disabled.
          #<----->Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
          #
          # Mandatory: no
          # Default:
          # ServerActive=

          ServerActive=10.52.1.187

          ### Option: Hostname
          #<----->Unique, case sensitive hostname.
          #<----->Required for active checks and must match hostname as configured on the server.
          #<----->Value is acquired from HostnameItem if undefined.
          #
          # Mandatory: no
          # Default:
          # Hostname=

          Hostname=zabbix-msk




          ##### Active checks related

          ### Option: ServerActive
          # List of comma delimited IPort (or DNS nameort) pairs of Zabbix servers and Zabbix proxies for active checks.
          # If port is not specified, default port is used.
          # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
          # If port is not specified, square brackets for IPv6 addresses are optional.
          # If this parameter is not specified, active checks are disabled.
          # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
          #
          # Mandatory: no
          # Default:
          # ServerActive=

          ServerActive=127.0.0.1

          ### Option: Hostname
          # Unique, case sensitive hostname.
          # Required for active checks and must match hostname as configured on the server.
          # Value is acquired from HostnameItem if undefined.
          #
          # Mandatory: no
          # Default:
          # Hostname=

          Hostname=zabbix-msk
          Last edited by aleksey.ishchenko; 03-12-2020, 11:05.

          Comment

          Working...