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

A crash in history syncer possibly due to a log rotate item

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 2.2.3
    • Server (S)
    • Debian GNU/Linux 7 (wheezy)

      I wanted to monitor some log file and created an item in a template like so:

      <item>
      <name>LogError</name>
      <type>7</type>
      <snmp_community/>
      <multiplier>0</multiplier>
      <snmp_oid/>
      <key>
      logrt["/var/log/app/^info\.log\.?[0-9]{0,3}$", "\[error\]"]
      </key>
      <delay>30</delay>
      <history>90</history>
      <trends>365</trends>
      <status>1</status>
      <value_type>2</value_type>
      <allowed_hosts/>
      <units/>
      <delta>0</delta>
      <snmpv3_contextname/>
      <snmpv3_securityname/>
      <snmpv3_securitylevel>0</snmpv3_securitylevel>
      <snmpv3_authprotocol>0</snmpv3_authprotocol>
      <snmpv3_authpassphrase/>
      <snmpv3_privprotocol>0</snmpv3_privprotocol>
      <snmpv3_privpassphrase/>
      <formula>1</formula>
      <delay_flex/>
      <params/>
      <ipmi_sensor/>
      <data_type>0</data_type>
      <authtype>0</authtype>
      <username/>
      <password/>
      <publickey/>
      <privatekey/>
      <port/>
      <description/>
      <inventory_link>0</inventory_link>
      <applications>
      <application>
      <name>PCP Node</name>
      </application>
      </applications>
      <valuemap/>
      </item>
      

      As soon as I enable this item I get the following in crash in zabbix server.

      backtrace snippet:

        3963:20140526:113515.570 === Backtrace: ===
        3963:20140526:113515.571 12: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](print_fatal_info+0x9e) [0x45531e]
        3963:20140526:113515.571 11: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history]() [0x455727]
        3963:20140526:113515.571 10: /lib/x86_64-linux-gnu/libc.so.6(+0x324f0) [0x7f93525e54f0]
        3963:20140526:113515.571 9: /lib/x86_64-linux-gnu/libc.so.6(+0x11d256) [0x7f93526d0256]
        3963:20140526:113515.572 8: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](evaluate_function+0x2826) [0x46a096]
        3963:20140526:113515.572 7: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history]() [0x46ac50]
        3963:20140526:113515.572 6: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](evaluate_expressions+0x72b) [0x47220b]
        3963:20140526:113515.572 5: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](DCsync_history+0x27df) [0x43fadf]
        3963:20140526:113515.572 4: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](main_dbsyncer_loop+0x1fd) [0x417ced]
        3963:20140526:113515.572 3: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](MAIN_ZABBIX_ENTRY+0x7e8) [0x417168]
        3963:20140526:113515.572 2: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](daemon_start+0x18d) [0x454c3d]
        3963:20140526:113515.572 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f93525d1ead]
        3963:20140526:113515.572 0: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history]() [0x412591]
      

            Unassigned Unassigned
            ed.barwani Ed Barwani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: