Ad Widget

Collapse

Trigger not working for Text Items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maxpower
    Member
    • Jul 2007
    • 31

    #1

    Trigger not working for Text Items

    Hi,
    i send some text to the zabbix server with zabbix_sender. The text arrives, i see it in the "latest data".
    Now i want a trigger that reacts when a text item arrives but it doesn't work.

    {Template_Solaris_HVB:ELOG.last(0)}#0

    The item key name is ELOG. If i send something to zabbix i get no event !
    I tried count and regexp without luck. The strange thing is that str() claims it only works for char and log but not for strings ?
    Function (str) available only for items with value types [Character,Log]

    Any workaround available ?
  • maxpower
    Member
    • Jul 2007
    • 31

    #2
    it's a bug

    you always forgot ITEM_VALUE_TYPE_TEXT in the evalfunc.c for str, regexp, count and so on. Also in the php frontend.

    Comment

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

      #3
      Thanks for reporting this.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • Justin Freeman
        Junior Member
        • Jan 2009
        • 18

        #4
        Still a bug?

        I encountered this problem today when trying to use the .str function on a item having type 'text'.

        Is this still a bug in Zabbix? Bug report?

        Comment

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

          #5
          Originally posted by Justin Freeman
          I encountered this problem today when trying to use the .str function on a item having type 'text'.

          Is this still a bug in Zabbix? Bug report?
          What version of Zabbix do you have?
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • exkg
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified Specialist
            • Mar 2007
            • 718

            #6
            Hi Alexei,

            We have yhe same error in 1.6.2.

            Function (regexp) available only for items with value types [Carácter,Log]



            []s,
            Luciano
            --
            Luciano Alves
            www.zabbix.com
            Brazil | México | Argentina | Colômbia | Chile
            Zabbix Performance Tuning

            Comment

            • Justin Freeman
              Junior Member
              • Jan 2009
              • 18

              #7
              Verion 1.6.2

              Originally posted by Alexei
              What version of Zabbix do you have?
              Verion 1.6.2 (sorry for the delay, I missed the thread update notification).

              Comment

              • exkg
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified Specialist
                • Mar 2007
                • 718

                #8
                Aly ? Alexei ?

                We have something about this error ?



                []s,
                Luciano
                --
                Luciano Alves
                www.zabbix.com
                Brazil | México | Argentina | Colômbia | Chile
                Zabbix Performance Tuning

                Comment

                • stardust2678
                  Junior Member
                  • Mar 2009
                  • 3

                  #9
                  Trigger not working for Text Items

                  Hello Everybody, this is my first post in the forum , so I ll try be as clear as possible.

                  I have installed and configured Zabbix 1.6.2 on a Centos 5 .
                  I have installed and configured SNMPTT and the snmptrapd daemon
                  Traps successfully arrive at Zabbix.

                  Below you can see the command i use to send the traps with Snmptt.conf
                  EXEC /usr/local/sbin/zabbix_sender -v -z localhost -p 10051 -s $r -k snmptraps -o "$aA::$s:: $N - $Fz"

                  Also the arrived trap from the history in zabbix look like this:

                  x.x.x.x::OK:: Alarm_OFF - Video running for x.x.x.x
                  x.x.x.x::Critical:: Alarm_ON - Video stopped for x.x.x.x

                  were x.x.x.x is ip address.

                  What I need to do . I need to have a trigger that comes on when Alarm_ON and go off when Alarm_OFF . Also when I receive anything else I need zabbix to ignore it .

                  Finally I need to have this triggers to Auto-close themselves.

                  For example Alarm_ON and the status in Zabbix = problem
                  Alarm_OFF and the status in Zabbix = OK

                  I have tested items both with text or character configuration but is it seems that the command {x.x.x.x:snmptraps.str(Alarm_ON)}=1 for example doesn't work.

                  Just to mentions that I am using /usr/local/sbin/zabbix_sender and not the sh or perl script .

                  Can you please help me ?

                  Comment

                  Working...