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

macOS agent: shell-init: error retrieving current directory: getcwd: cannot access parent directories

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.0.2
    • Agent (G)
    • None
    • macOS 10.15.6

      Steps to reproduce:

      • download and install agent for macOS
      • configure agent
        • Server=127.0.0.1, 10.0.0.0/24
          ServerActive=127.0.0.1, 10.0.0.0/24
          Hostname=mymac
          Include=/usr/local/etc/zabbix/zabbix_agentd.conf.d/*.conf
      • add custom parameter, e.g. simple test:
        • /usr/local/etc/zabbix/zabbix_agentd.conf.d/userparameter_examples.conf
          • UserParameter=system.test,echo mytest
        • or e.g. the default postgresql and mysql custom parameters
      • run agent
        • zabbix_agentd -f
      • default item works fine, e.g.
        • zabbix_get -s 10.0.0.10 -k "system.cpu.load[all,avg1]"
      • custom parameter gives error and value (in Zabbix server, and when manually using zabbix_get), e.g.
        • zabbix_get -s 10.0.0.10 -k "system.test"
        • (running this command from same system as agent, or different system - the outcome is identical)

       

      Output: error and value are shown

      shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
      mytest

      Zabbix server stores the "shell-init" error instead of the value(s).

       

       

            neogan Andrei Gushchin (Inactive)
            winfred Winfred
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: