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

External check times out when Zabbix server is stopped.

XMLWordPrintable

    • Sprint 87 (Apr 2022)
    • 1

      It seems that the read function receives a signal interrupt and is flowing to the timeout route.

      Steps to reproduce:

      1. create item
        test02.sh[{HOST.HOST}] 
        
      2. script
        !/usr/bin/sh
        HOST=$1
        logger zabbix:start external script test:$1
        sleep 25
        echo `date` $1
        logger zabbix:stop external script test:$1 
        
      3. Stop Zabbix while running external check.

      Result:

        4455:20220405:114213.569 Got signal [signal:15(SIGTERM),sender_pid:4569,sender_uid:0,reason:0]. Exiting ...
        4455:20220405:114213.569 zbx_on_exit() called
        4467:20220405:114213.569 End of zbx_ipc_service_recv():2
        4467:20220405:114213.569 __zbx_zbx_setproctitle() title:'preprocessing manager #1 [terminated]'
        4473:20220405:114213.576 __zbx_zbx_setproctitle() title:'timer #1 [terminated]'
        4478:20220405:114213.577 __zbx_zbx_setproctitle() title:'history syncer #1 [processed 0 values, 0 triggers in 0.000201 sec, syncing history]'
        4478:20220405:114213.577 syncing history data in progress... 
        4478:20220405:114213.577 syncing history data done
        4478:20220405:114213.577 In zbx_sync_history_cache() history_num:0
        4478:20220405:114213.577 End of zbx_sync_history_cache()
        4478:20220405:114213.577 __zbx_zbx_setproctitle() title:'history syncer #1 [processed 0 values, 0 triggers in 0.000376 sec, idle 1 sec]'
        4479:20220405:114213.588 __zbx_zbx_setproctitle() title:'history syncer #2 [processed 0 values, 0 triggers in 0.000197 sec, syncing history]'
        4479:20220405:114213.588 In zbx_sync_history_cache() history_num:0
        4479:20220405:114213.588 End of zbx_sync_history_cache()
        4479:20220405:114213.589 __zbx_zbx_setproctitle() title:'history syncer #2 [processed 0 values, 0 triggers in 0.000296 sec, idle 1 sec]'
        4480:20220405:114213.601 __zbx_zbx_setproctitle() title:'history syncer #3 [processed 0 values, 0 triggers in 0.000193 sec, syncing history]'
        4480:20220405:114213.601 In zbx_sync_history_cache() history_num:0
        4480:20220405:114213.601 End of zbx_sync_history_cache()
        4480:20220405:114213.601 __zbx_zbx_setproctitle() title:'history syncer #3 [processed 0 values, 0 triggers in 0.000416 sec, idle 1 sec]'
        4481:20220405:114213.611 __zbx_zbx_setproctitle() title:'history syncer #4 [processed 0 values, 0 triggers in 0.000209 sec, syncing history]'
        4481:20220405:114213.611 In zbx_sync_history_cache() history_num:0
        4481:20220405:114213.611 End of zbx_sync_history_cache()
        4481:20220405:114213.611 __zbx_zbx_setproctitle() title:'history syncer #4 [processed 0 values, 0 triggers in 0.000303 sec, idle 1 sec]'
        4483:20220405:114213.623 __zbx_zbx_setproctitle() title:'snmp trapper #1 [terminated]'
        4492:20220405:114213.624 __zbx_zbx_setproctitle() title:'self-monitoring #1 [terminated]'
        4497:20220405:114213.624 In zbx_waitpid()
        4516:20220405:114213.625 __zbx_zbx_setproctitle() title:'trapper #1 [terminated]'
        4517:20220405:114213.625 __zbx_zbx_setproctitle() title:'trapper #2 [terminated]'
        4520:20220405:114213.626 __zbx_zbx_setproctitle() title:'trapper #3 [terminated]'
        4521:20220405:114213.626 __zbx_zbx_setproctitle() title:'trapper #4 [terminated]'
        4522:20220405:114213.626 __zbx_zbx_setproctitle() title:'trapper #5 [terminated]'
        4497:20220405:114213.628 zbx_waitpid() killed by signal 15
        4497:20220405:114213.628 End of zbx_waitpid():4560
        4497:20220405:114213.628 Failed to execute command "/usr/lib/zabbix/externalscripts/test02.sh 'Zabbix server'": Timeout while executing a shell script.
        4497:20220405:114213.628 End of get_value_external():NOTSUPPORTED
        4497:20220405:114213.628 Item [Zabbix server:test02.sh[{HOST.HOST}]] error: Timeout while executing a shell script.
        4497:20220405:114213.628 End of get_value():NOTSUPPORTED
        4497:20220405:114213.629 In zbx_activate_item_host() hostid:10084 itemid:28869 type:10
        4497:20220405:114213.629 End of zbx_activate_item_host()
        4497:20220405:114213.629 In zbx_preprocess_item_value()
        4497:20220405:114213.629 End of zbx_preprocess_item_value()
        4497:20220405:114213.629 In zbx_ipc_socket_write()
        4497:20220405:114213.629 End of zbx_ipc_socket_write():SUCCEED
        4497:20220405:114213.629 End of get_values():1
        4497:20220405:114213.629 __zbx_zbx_setproctitle() title:'poller #2 [got 1 values in 4.073290 sec, idle 5 sec]'
        4455:20220405:114213.734 In DBconnect() flag:1
        4455:20220405:114213.739 End of DBconnect():0
        4455:20220405:114213.739 In free_database_cache()
        4455:20220405:114213.739 In DCsync_all()
        4455:20220405:114213.740 In sync_history_cache_full() history_num:0
        4455:20220405:114213.740 End of sync_history_cache_full()
        4455:20220405:114213.740 In DCsync_trends() trends_num:0
        4455:20220405:114213.740 syncing trend data...
        4455:20220405:114213.740 query [txnlev:1] [begin;]
        4455:20220405:114213.740 query [txnlev:1] [commit;]
        4455:20220405:114213.741 syncing trend data done
        4455:20220405:114213.741 End of DCsync_trends()
        4455:20220405:114213.741 End of DCsync_all()
        4455:20220405:114213.741 End of free_database_cache()
        4455:20220405:114213.741 In free_configuration_cache()
        4455:20220405:114213.741 End of free_configuration_cache()
        4455:20220405:114213.741 In zbx_vc_destroy()
        4455:20220405:114213.741 End of zbx_vc_destroy()
        4455:20220405:114213.742 In free_selfmon_collector() collector:0x7fe0520c8000
        4455:20220405:114213.742 End of free_selfmon_collector()
        4455:20220405:114213.742 In zbx_unload_modules()
        4455:20220405:114213.742 End of zbx_unload_modules()
        4455:20220405:114213.742 Zabbix Server stopped. Zabbix 4.0.39 (revision 2e19ee1c57).
      

            vso Vladislavs Sokurenko
            kazuo.ito Kazuo Ito
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: