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

"One child process died" on external check run

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Workaround proposed
    • Icon: Trivial Trivial
    • None
    • 5.4.9
    • Server (S)
    • None
    • docker alpine latest official image

      Hi there!

      I have Zabbix set up using docker-compose and running an external script check guaranteed to trigger the error for me. To test it I push "Get value" on the screenshot and see the following:

      Here is the error in debug 5 in the log, the Zabbix server restarts after that:

      228:20211224:210757.933 In get_value() key:'sitemap_check.sh["https://favor-group.ru/sitemap.xml"]'
      228:20211224:210757.933 In get_value_external() key:'sitemap_check.sh["https://favor-group.ru/sitemap.xml"]'
      228:20211224:210757.933 In zbx_popen() command:'/usr/lib/zabbix/externalscripts/sitemap_check.sh 'https://favor-group.ru/sitemap.xml''
      228:20211224:210757.933 End of zbx_popen():8
      238:20211224:210757.933 zbx_popen(): executing script
        1:20211224:210758.123 One child process died (PID:242,exitcode/signal:0). Exiting ...
        1:20211224:210758.123 zbx_on_exit() called
      

      The complete debug5 log from start to crash and a new start is attached. I can reliably reproduce the problem. The script itself seems to work fine in the container:

      # first output line would be the output of the script, and second one is its exit code
      $ docker exec -it zabbix-server /bin/sh
      /var/lib/zabbix # /usr/lib/zabbix/externalscripts/sitemap_check.sh 'https://favor-group.ru/sitemap.xml' ; echo $?
      0
      0
      

            Unassigned Unassigned
            Paskal Dmitry Verkhoturov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: