Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22069

zabbix_agent2 plugin socket changes ownership after RT command run

    XMLWordPrintable

Details

    • Team B
    • Sprint 95 (Dec 2022), Sprint 96 (Jan 2023)
    • 1

    Description

      • Steps to reproduce
      [[email protected] tmp]# zabbix_agent2 -V | grep zabbix_agent2
      zabbix_agent2 (Zabbix) 6.0.12
      
      [[email protected] tmp]# ls -al /tmp/agent.*
      srwxr-xr-x 1 zabbix zabbix 0 Dec 12 06:52 /tmp/agent.plugin.sock
      srwx------ 1 zabbix zabbix 0 Dec 12 06:52 /tmp/agent.sock
      
      [[email protected] tmp]# zabbix_agent2 -R userparameter_reload
      2022/12/12 06:56:18.295337 User parameters reloaded
      
      [[email protected] tmp]# ls -al /tmp/agent.*
      srwxr-xr-x 1 root   root   0 Dec 12 06:56 /tmp/agent.plugin.sock
      srwx------ 1 zabbix zabbix 0 Dec 12 06:52 /tmp/agent.sock
      
      [[email protected] tmp]# systemctl stop zabbix-agent2
      

      Plugin files cannot be deleted because the owner is root.

      [[email protected] tmp]# ls -al /tmp/agent.*
      srwxr-xr-x 1 root root 0 Dec 12 06:56 /tmp/agent.plugin.sock
      
      zabbix_agent2.log
      2022/12/12 06:52:48.228652 Zabbix Agent2 hostname: [Zabbix server]
      2022/12/12 06:52:49.230741 [101] cannot connect to [127.0.0.1:10051]: dial tcp :0->127.0.0.1:10051: connect: connection refused
      2022/12/12 06:52:49.230782 [101] active check configuration update from host [Zabbix server] started to fail
      2022/12/12 06:56:18.295252 User parameters reloaded
      2022/12/12 06:58:45.017758 Zabbix Agent 2 stopped. (6.0.12)
      2022/12/12 06:58:45.017824 failed to clean up after plugins, operation not permitted
      

      Attachments

        Issue Links

          Activity

            People

              jlambda Juris Lambda
              hayato.watanabe Hayato Watanabe
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: