-
Problem report
-
Resolution: Workaround proposed
-
Trivial
-
None
-
5.4.9
-
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