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

keys "vfs.dev.read|write" with ops, bps paremeters cause crash of agent under FreeBSD

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Blocker Blocker
    • None
    • 2.0.1
    • Agent (G)

      I suppose an implementation of ZBXNEXT-801 caused agent crash under FreeBSD

      1. uname -a
        FreeBSD mon 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 [email protected]:/usr/obj/usr/src/sys/GENERIC i386

      Some old compiled agent where the keys worked successfully:

      1. ./zabbix_agentd -V
        Zabbix Agent (daemon) v2.0.0rc3 (revision 26686) (22 March 2012)
        Compilation time: Apr 7 2012 17:43:40
      1. zabbix_get -s localhost -k vfs.dev.write[ad0,ops]
        11.969697

      Then some old agent where the problem appeared:

      1. ./zabbix_agentd -V
        Zabbix Agent (daemon) v2.1.0 (revision 28358) (21 May 2012)
        Compilation time: Jun 19 2012 20:20:27

      Its debuglog when getting the key:

      51584:20121005:160220.675 Starting Zabbix Agent [fbsd]. Zabbix 2.1.0 (revision 28358).
      51584:20121005:160220.675 In init_collector_data()
      51584:20121005:160220.675 End of init_collector_data()
      51585:20121005:160220.676 agent #0 started [collector]
      51585:20121005:160220.676 In init_cpu_collector()
      51585:20121005:160220.677 End of init_cpu_collector():SUCCEED
      51587:20121005:160220.677 agent #2 started [listener]
      51585:20121005:160220.677 In update_cpustats()
      51585:20121005:160220.677 End of update_cpustats()
      51586:20121005:160220.677 agent #1 started [listener]
      51588:20121005:160220.677 agent #3 started [listener]
      51585:20121005:160221.677 In update_cpustats()
      51585:20121005:160221.677 End of update_cpustats()
      51585:20121005:160222.678 In update_cpustats()
      51585:20121005:160222.678 End of update_cpustats()
      51586:20121005:160223.133 Processing request.
      51586:20121005:160223.233 Requested [vfs.dev.write[ad0,ops]]
      51586:20121005:160223.233 In collector_diskdevice_get() devname:'ad0'
      51586:20121005:160223.233 zbx_shmget() removing existing shm_id:655367
      zabbix_agentd_2012-08-16_11-52-49 [51586]: cannot remove existing shared memory: [13] Permission denied
      51586:20121005:160223.234 cannot allocate shared memory for disk statistics collector
      51584:20121005:160223.234 One child process died (PID:51586,exitcode/signal:256). Exiting ...
      51584:20121005:160223.234 zbx_on_exit() called
      51587:20121005:160223.234 Got signal [signal:15(SIGTERM),sender_pid:51584,sender_uid:122,reason:65537]. Exiting ...
      51585:20121005:160223.235 Got signal [signal:15(SIGTERM),sender_pid:51584,sender_uid:122,reason:65537]. Exiting ...
      51588:20121005:160223.235 Got signal [signal:15(SIGTERM),sender_pid:51584,sender_uid:122,reason:65537]. Exiting ...
      51584:20121005:160225.237 Zabbix Agent stopped. Zabbix 2.1.0 (revision 28358).

      Note that you cannot test this crash in current trunk/2.0.3 because another problem ZBX-5661

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: