Ad Widget

Collapse

Zabbix server crashes evaluating str

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skullone
    Member
    • Mar 2007
    • 46

    #1

    Zabbix server crashes evaluating str

    I am running Zabbix 1.4.1 (1.4.4 or newer does not compile correctly).
    I have a trigger that will actually crash Zabbix.
    Here is the trigger:

    Name: Archive error
    Expression: ({Template_Windows:eventlog[Application].str(EmailArchive)}=1)&({Template_windows:eventlog[Application].nodata(30}#1)

    This will cause Zabbix server to crash, with the following data in debug log:

    56974:20080225:192722 In update_functions(24374)
    56974:20080225:192722 Query [select distinct function,parameter,itemid,lastvalue from functions where itemid=24374]
    56974:20080225:192723 ItemId:24374 Evaluating logseverity(4)
    56974:20080225:192723 Query [select severity from history_log where itemid=24374 order by clock desc limit 1]
    56974:20080225:192723 ItemId:24374 Evaluating nodata(30)
    56974:20080225:192723 Query [update functions set lastvalue='1' where itemid=24374 and function='nodata' and parameter='30']
    56974:20080225:192723 ItemId:24374 Evaluating str(EmailArchive)
    56945:20080225:192723 One child process died. Exiting ...
    56948:20080225:192723 Got signal. Exiting ...
    56947:20080225:192723 Got signal. Exiting ...


    However, if I just have the expression as
    Expression: {Template_Windows:eventlog[Application].str(EmailArchive)}=1

    It does not crash at that point.
    I have tried upgrading to 1.5 beta, but there are alloc problems with it and it wont even start on FreeBSD 6.2 (tried on several clean systems, all the same problem, which is for another topic)

    Any ideas? It sounds like a broken eval function in Zabbix
  • skullone
    Member
    • Mar 2007
    • 46

    #2
    I just got 1.4.4 to install on my system.
    Unfortunately, the same crash still exists when I use that full trigger.

    Any ideas anyone? Alexi?

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      This was fixed some time ago for pre 1.4.5. You may want to use the latest code available from www.zabbix.com/download.php
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • skullone
        Member
        • Mar 2007
        • 46

        #4
        I compiled one of the latest nightly 1.4.pre5 builds from the site, and it appears to have fixed the crashing.

        Thanks Alexei!

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Thanks for the good news!
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...