Ad Widget

Collapse

delta bug for zabbix_trapper (1.1beta2)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rdg
    Junior Member
    • Jun 2005
    • 20

    #1

    delta bug for zabbix_trapper (1.1beta2)

    Steps to reproduce:
    1. Define two items, "testasis" and "testdelta".
    Description/key "testasis" and "testdelta"
    host: localhost
    type: "Zabbix trapper".
    testasis should have the Store value: As is
    testdelta should have the Store value: Delta (speed per second)


    2. Use the zabbix_sender commands as below:
    [zabbix@nms zabbix]$ /opt/zabbix/bin/zabbix_sender localhost 10051 localhost testasis 10
    OK
    [zabbix@nms zabbix]$ /opt/zabbix/bin/zabbix_sender localhost 10051 localhost testdelta 10
    OK

    3. Create a graph for the two items above


    The problem is that only testasis updates the graph I have defined.
    The values in the graph changes to:
    testasis [min:10 max:10 last:10]
    testdelta [min:0 max:0 last:0]

    Teh values for testdelta remains at 0.


    Logfiles below
    *******testasis********
    021657:20051108:210753 After accept()
    021657:20051108:210753 Before read()
    021657:20051108:210753 After read() 2 [107]
    021657:20051108:210753 Got line:<req><host>bG9jYWxob3N0</host><key>dGVzdGFzaXM=</key><data>MTA=</data><lastlogsize
    >MA==</lastlogsize></req
    021657:20051108:210753 Trapper got [<req><host>bG9jYWxob3N0</host><key>dGVzdGFzaXM=</key><data>MTA=</data><lastlog
    size>MA==</lastlogsize></req]
    021657:20051108:210753 XML received [<req><host>bG9jYWxob3N0</host><key>dGVzdGFzaXM=</key><data>MTA=</data><lastlo
    gsize>MA==</lastlogsize></req]
    021657:20051108:210753 In process_data([localhost],[testasis],[10],[0])
    021657:20051108:210753 Executing query:select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.ty
    pe,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.hist ory,i.lastvalue,i.prevvalue,i.value_type,i.trapper _hosts,i.delta
    ,i.units,i.multiplier,i.formula,i.logtimefmt from items i,hosts h where h.status=0 and h.hostid=i.hostid and h.hos
    t='localhost' and i.key_='testasis' and i.status=0 and i.type in (2,7)
    021657:20051108:210753 In DBnum_rows
    021657:20051108:210753 Result of DBnum_rows [1]
    021657:20051108:210753 Processing [10]
    021657:20051108:210753 In process_new_value()
    021657:20051108:210753 In add_history()
    021657:20051108:210753 Executing query:insert into history (clock,itemid,value) values (1131480473,17879,10.000000
    )
    021657:20051108:210753 In add_trend()
    021657:20051108:210753 SQL [select num,value_min,value_avg,value_max from trends where itemid=17879 and clock=1131
    480000]
    021657:20051108:210753 Executing query:select num,value_min,value_avg,value_max from trends where itemid=17879 and
    clock=1131480000
    021657:20051108:210753 In DBnum_rows
    021657:20051108:210753 Executing query:insert into trends (clock,itemid,num,value_min,value_avg,value_max) values
    (1131480000,17879,1,10.000000,10.000000,10.000000)
    021657:20051108:210753 Executing query:update items set nextcheck=1131480480,prevvalue=lastvalue,lastvalue ='10',la
    stclock=1131480473 where itemid=17879
    021657:20051108:210753 In update_functions(17879)
    021657:20051108:210753 Executing query:select function,parameter,itemid,lastvalue from functions where itemid=1787
    9 group by 1,2,3 order by 1,2,3
    021657:20051108:210753 In DBnum_rows
    021657:20051108:210753 In update_triggers [17879]
    021657:20051108:210753 Executing query:select distinct t.triggerid,t.expression,t.status,t.dep_level,t.pr iority,t.
    value,t.description from triggers t,functions f,items i where i.status<>3 and i.itemid=f.itemid and t.status=0 and
    f.triggerid=t.triggerid and f.itemid=17879
    021657:20051108:210753 In DBnum_rows
    021657:20051108:210753 Sending back [OK
    ]


    *******testdelta********
    021652:20051108:210814 After accept()
    021652:20051108:210814 Before read()
    021652:20051108:210814 After read() 2 [107]
    021652:20051108:210814 Got line:<req><host>bG9jYWxob3N0</host><key>dGVzdGRlbHRh</key><data>MTA=</data><lastlogsize
    >MA==</lastlogsize></req
    021652:20051108:210814 Trapper got [<req><host>bG9jYWxob3N0</host><key>dGVzdGRlbHRh</key><data>MTA=</data><lastlog
    size>MA==</lastlogsize></req]
    021652:20051108:210814 XML received [<req><host>bG9jYWxob3N0</host><key>dGVzdGRlbHRh</key><data>MTA=</data><lastlo
    gsize>MA==</lastlogsize></req]
    021652:20051108:210814 In process_data([localhost],[testdelta],[10],[0])
    021652:20051108:210814 Executing query:select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.ty
    pe,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.hist ory,i.lastvalue,i.prevvalue,i.value_type,i.trapper _hosts,i.delta
    ,i.units,i.multiplier,i.formula,i.logtimefmt from items i,hosts h where h.status=0 and h.hostid=i.hostid and h.hos
    t='localhost' and i.key_='testdelta' and i.status=0 and i.type in (2,7)
    021652:20051108:210814 In DBnum_rows
    021652:20051108:210814 Result of DBnum_rows [1]
    021652:20051108:210814 Processing [10]
    021652:20051108:210814 In process_new_value()
    021652:20051108:210814 In add_history()
    021652:20051108:210814 Executing query:insert into history (clock,itemid,value) values (1131480494,17880,0.000000)
    021652:20051108:210814 In add_trend()
    021652:20051108:210814 SQL [select num,value_min,value_avg,value_max from trends where itemid=17880 and clock=1131
    480000]
    021652:20051108:210814 Executing query:select num,value_min,value_avg,value_max from trends where itemid=17880 and
    clock=1131480000
    021652:20051108:210814 In DBnum_rows
    021652:20051108:210814 Executing query:insert into trends (clock,itemid,num,value_min,value_avg,value_max) values
    (1131480000,17880,1,0.000000,0.000000,0.000000)
    021652:20051108:210814 Executing query:update items set nextcheck=1131480510,prevvalue=lastvalue,prevorgva lue=10.0
    00000,lastvalue='0.000000',lastclock=1131480494 where itemid=17880
    021652:20051108:210814 In update_functions(17880)
    021652:20051108:210814 Executing query:select function,parameter,itemid,lastvalue from functions where itemid=1788
    0 group by 1,2,3 order by 1,2,3
    021652:20051108:210814 In DBnum_rows
    021652:20051108:210814 In update_triggers [17880]
    021652:20051108:210814 Executing query:select distinct t.triggerid,t.expression,t.status,t.dep_level,t.pr iority,t.
    value,t.description from triggers t,functions f,items i where i.status<>3 and i.itemid=f.itemid and t.status=0 and
    f.triggerid=t.triggerid and f.itemid=17880
    021652:20051108:210814 In DBnum_rows
    021652:20051108:210814 Sending back [OK
    ]

    Any help on this is very much appreciated.

    Thanks

    Robert
  • rdg
    Junior Member
    • Jun 2005
    • 20

    #2
    Can someone please confirm if you have seen the same problem?

    Thanks

    Robert

    Comment

    Working...