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

identical log entries and potential forking issue

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • None
    • Server (S)

      when server runs a global script command, it logs two sequential, identical log lines.

      14917:20130207:145310.747 Trapper got [

      {"request":"command","nodeid":0,"scriptid":"1","hostid":"10093"}

      ] len 64
      14917:20130207:145310.747 In node_process_command()
      14917:20130207:145310.747 In execute_script() scriptid:1 hostid:10093
      14917:20130207:145310.747 query [txnlev:0] [select host,name from hosts where hostid=10093]
      14917:20130207:145310.747 In zbx_execute_script()
      14917:20130207:145310.748 In DBget_script_by_scriptid()
      14917:20130207:145310.748 query [txnlev:0] [select type,execute_on,command,groupid from scripts where scriptid=1]
      14917:20130207:145310.748 End of DBget_script_by_scriptid():SUCCEED
      14917:20130207:145310.748 In check_script_permissions() groupid:0 hostid:10093
      14917:20130207:145310.748 End of check_script_permissions():SUCCEED
      14917:20130207:145310.748 In substitute_simple_macros() data:'/bin/ping -c 3

      {HOST.CONN}

      2>&1'
      14917:20130207:145310.748 query [txnlev:0] [select type,useip,ip,dns from interface where hostid=10093 and type in (1,2,3,4) and main=1]
      14917:20130207:145310.749 End substitute_simple_macros() data:'/bin/ping -c 3 192.168.5.107 2>&1'
      14917:20130207:145310.749 In zbx_execute_script()
      14917:20130207:145310.749 In zbx_popen() command:'/bin/ping -c 3 192.168.5.107 2>&1'
      14917:20130207:145310.749 End of zbx_popen():8
      14917:20130207:145312.758 In zbx_waitpid()
      14917:20130207:145312.758 zbx_waitpid() exited, status:0
      14917:20130207:145312.758 End of zbx_waitpid():23914
      14917:20130207:145312.758 End of zbx_execute_script():SUCCEED
      14917:20130207:145312.758 End of zbx_execute_script():SUCCEED
      14917:20130207:145312.758 End of execute_script():SUCCEED

      notice " 14917:20130207:145312.758 End of zbx_execute_script():SUCCEED"

      a) it should be verified whether everything is ok there;
      b) it should be verified that any forking is happening as expected

            Unassigned Unassigned
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: