Ad Widget

Collapse

Problem with 1.6.1 Zabbix Trapper item having Text type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stan.vasiljev
    Junior Member
    • Jan 2008
    • 28

    #1

    Problem with 1.6.1 Zabbix Trapper item having Text type

    Zabbix Trapper item having Text type works perfectly in Zabbix v. 1.4.4.
    But after upgrade to 1.6.1 Zabbix shows empty values for items, which have Text type of information. It's strange, because it still works for items, which have Str type of information, even after upgrade to 1.6.1.

    For example:
    1. Zabbix Trapper Item "strHostTraps" have Str type of info. I run this command:
    /usr/sbin/zabbix_sender -z192.168.0.1 -p10051 -s"sHostTrapper" -k"strHostTraps" -o"proxy test".
    Info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.026671"
    sent: 1; skipped: 0; total: 1

    And I can see this value in front-end:
    Timestamp Value
    2008.Nov.07 13:04:50 proxy test

    1. When Zabbix Trapper Item "txtHostTraps" have Text type of info. And after I run this command:
    /usr/sbin/zabbix_sender -z192.168.0.1 -p10051 -s"sHostTrapper" -k"txtHostTraps" -o"proxy test".
    Info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.026671"
    sent: 1; skipped: 0; total: 1
    Sorry, but I can't see this value in front-end - there are empty space:
    Timestamp Value
    2008.Nov.07 13:05:15
    It is strange, because in front-end for this text item I can see older values, which were been perfectly sent and inserted by zabbix 1.4.4. But new received values are empty.
    I think this can be bug in server-side (at text value processing stage).

    I don't found any info about this problem and create new thread.

    Thanks for attention.
  • Wolfgang
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Apr 2005
    • 116

    #2
    I just setup a trapper with type text using a _fresh_ 1.6.1 and it works.
    Can you check your history_text table and see wether it contains the value?

    Regards

    Wolfgang
    http://www.intellitrend.de
    Specialised in monitoring large environments and Zabbix API programming.

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      maybe this problem is connected to data displaying only - see https://support.zabbix.com/browse/ZBX-840
      Zabbix 3.0 Network Monitoring book

      Comment

      • stan.vasiljev
        Junior Member
        • Jan 2008
        • 28

        #4
        There was no "..." symbols in frontend - only empty space in item value. So I don't think it's related to https://support.zabbix.com/browse/ZBX-840

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          note that your report was about 1.6.1, but the bug fas filed around the time when 1.6.4 was released - have you checked with latest version ?
          Zabbix 3.0 Network Monitoring book

          Comment

          • stan.vasiljev
            Junior Member
            • Jan 2008
            • 28

            #6
            I'm using 1.6.2 now - I works fine with Text items - frontend displays their values clearly. Maybe it was problem with 1.6.1 frontend. Sorry, I have failed to
            inspect this bug before values were deleted (housekeepered :-).
            I'll reconfigure my Str items back to Text type and check results yet another time

            Comment

            • stan.vasiljev
              Junior Member
              • Jan 2008
              • 28

              #7
              I've checked and tested text items today. I haven't found any problems with empty values with hosts which monitored directly by zabbix_server.

              BUT problems with empty values present only for hosts and items which monitored through zabbix proxy.

              This is test command:
              zabbix_sender -z 127.0.0.1 -s"test_host" -k"listTrap" -o"text_test9"

              But values in frontend and database are empty:
              mysql> select * from history_text where itemid=82836;
              +---------+--------+------------+------------+
              | id | itemid | clock | value |
              +---------+--------+------------+------------+
              | 9124267 | 82836 | 1245061318 | |
              | 9124564 | 82836 | 1245061749 | |
              | 9124605 | 82836 | 1245061810 | |
              +---------+--------+------------+------------+

              And there is part of zabbix_proxy log about this text item processing:
              25706:20090615:063010 Trapper got [{
              "request":"sender data",
              "data":[
              {
              "host":"test_host",
              "key":"listTrap",
              "value":"text_test9"}]}] len 113
              25706:20090615:063010 In process_new_values()
              25706:20090615:063010 In process_mass_data()
              25706:20090615:063010 In DCinit_nextchecks()
              25706:20090615:063010 Query [select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h .useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.ho stid,h.status,i.value_type,h.errors_from,i.snmp_po rt,i.delta,i.prevorgvalue,i.lastclock,i.units,i.mu ltiplier,i.snmpv3_securityname,i.snmpv3_securityle vel,i.snmpv3_authpassphrase,i.snmpv3_privpassphras e,i.formula,h.available,i.status,i.trapper_hosts,i .logtimefmt,i.valuemapid,i.delay_flex,h.dns,i.para ms,i.trends,h.useipmi,h.ipmi_port,h.ipmi_authtype, h.ipmi_privilege,h.ipmi_username,h.ipmi_password,i .ipmi_sensor from hosts h, items i where h.hostid=i.hostid and h.proxy_hostid=0 and h.status=0 and i.status in (0,3) and i.type in (2,7) and ((h.host='test_host' and i.key_='listTrap'))]
              25706:20090615:063010 Query [begin;]
              25706:20090615:063010 In proxy_process_new_value(listTrap)
              25706:20090615:063010 In add_history(itemid: 82836,key:"listTrap",value_type:4,TEXT:[text_test9])
              25706:20090615:063010 In proxy_add_history_text()
              25706:20090615:063010 Query [insert into proxy_history (itemid,clock,value) values (82836,1245061810,'')]
              25706:20090615:063010 End of proxy_add_history
              25706:20090615:063010 In proxy_update_item()
              25706:20090615:063010 In calculate_item_nextcheck (82836,30,"",1245061810)
              25706:20090615:063010 End calculate_item_nextcheck (result:1245061836)
              25706:20090615:063010 Query [update items set nextcheck=1245061836 where itemid=82836]
              25706:20090615:063010 End proxy_update_item()
              25706:20090615:063010 Query [commit;]
              25706:20090615:063010 In DCflush_nextchecks()


              At insert stage (25706:20090615:063010 Query [insert into proxy_history (itemid,clock,value) values (82836,1245061810,'')]) value is empty. So in frontend we can see actual empty value, but proxy has lost initial value on processing stage. Is it bug of zabbix_proxy ?

              Some version info:
              zabbix_proxy -V
              ZABBIX Proxy (daemon) v1.6.1 (04 November 2008)

              zabbix_sender -V
              ZABBIX send v1.6.1 (04 November 2008)

              Comment

              • richlv
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Oct 2005
                • 3112

                #8
                i'd suggest testing with the latest version and reporting on the tracker if the problem is still there
                Zabbix 3.0 Network Monitoring book

                Comment

                Working...