Ad Widget

Collapse

Problem zabbix sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adeptus24
    Junior Member
    • May 2016
    • 7

    #1

    Problem zabbix sender

    Hello all,

    I wrote this problem in the specific subforum for my native language, but I think I will obtain more support writing it here, sorry for my English.

    We have a problem when register values of an item. We have to collect values from a database once a day, send it with the zabbix_sender and only the difference register with the above value.

    In a script collect the value of a database informix.

    Run the zabbix_sender with the key for the value to be sent zabbix server.

    Here I show the configuration of the item, log the zabbix_sender and log server in "debug 4".

    script log

    Code:
    [2016-06-03 10:30:02] tifxqms1shm_repba - sender: -k tamLlogs -o 14131200 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000108" sent: 1; skipped: 0; total: 1
    Item conf

    Code:
     Type: "Zabbix trapper"
     Key: "tamLlogs"
     Type of information: "Numeric (unsigned)"
     Data type: "Decimal"
     Units:
     Use custom multiplier:
     Store value: "Delta (simple change)"
    zabbix_server.log DebugLevel=4

    Code:
     23650:20160603:103002.277 trapper #4 [processing data]
     23650:20160603:103002.277 trapper got '{"request":"sender data","data":[{"host":"tifxqms1","key":"tamLlogs","value":"14131200"}]}'
     23650:20160603:103002.277 In recv_agenthistory()
     23650:20160603:103002.277 In process_hist_data()
     23650:20160603:103002.277 In process_mass_data()
     23650:20160603:103002.277 In substitute_simple_macros() data:EMPTY
     23650:20160603:103002.277 End of process_mass_data()
     23650:20160603:103002.277 End of process_hist_data():SUCCEED
     23650:20160603:103002.277 In zbx_send_response()
     23650:20160603:103002.277 zbx_send_response() '{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000108"}'
     23650:20160603:103002.277 End of zbx_send_response():SUCCEED
     23650:20160603:103002.277 End of recv_agenthistory()
     23650:20160603:103002.278 trapper #4 [processed data in 0.000698 sec, waiting for connection]
    Now comes the strange problem, the first time you run does not record any value, but if you run a second time, third, fourth, etc ... records each and every one of the values sent by the zabbix_sender.

    Does anyone have any idea that might be? It is the only item we are having problems.

    zabbix_server version

    Code:
    zabbix_server --version
    Zabbix server v2.4.8 (revision 59539) (20 April 2016)
    Compilation time: May 25 2016 17:35:45
    zabbix_sender version

    Code:
    zabbix_sender --version
    Zabbix Sender v2.4.8 (revision 59539) (20 April 2016)
    Compilation time: May  4 2016 01:36:20
    zabbix_agentd version

    Code:
    zabbix_agentd --version
    Zabbix Agent (daemon) v2.4.8 (revision 59539) (20 April 2016)
    Compilation time: May  4 2016 01:36:20
    Best regards.
  • glebs.ivanovskis
    Senior Member
    • Jul 2015
    • 237

    #2
    That's because you store value as "Delta (simple change)". The first value Zabbix can store is the difference between the second value you sent and the first value you sent.

    Comment

    • adeptus24
      Junior Member
      • May 2016
      • 7

      #3
      Originally posted by glebs.ivanovskis
      That's because you store value as "Delta (simple change)". The first value Zabbix can store is the difference between the second value you sent and the first value you sent.
      First, thanks for your reply, the problem is that there are values in the table, one fails the first time that sent with zabbix_sender every day, the second time not fail, only the first time it runs every day, but I only want to run once a day.

      Comment

      • glebs.ivanovskis
        Senior Member
        • Jul 2015
        • 237

        #4
        Do you restart Zabbix server every day?

        Comment

        • adeptus24
          Junior Member
          • May 2016
          • 7

          #5
          Originally posted by glebs.ivanovskis
          Do you restart Zabbix server every day?
          Yes, to make a copy of mysql database.

          Comment

          • glebs.ivanovskis
            Senior Member
            • Jul 2015
            • 237

            #6
            Zabbix server needs at least two values since restart to store something as Delta (simple change) or Delta (change per second). Save value as is and create calculated item to calculate change.

            Comment

            • adeptus24
              Junior Member
              • May 2016
              • 7

              #7
              Originally posted by glebs.ivanovskis
              Zabbix server needs at least two values since restart to store something as Delta (simple change) or Delta (change per second). Save value as is and create calculated item to calculate change.
              Thanks so much... one question more... we have updated from 2.0 version, in this version we don't have this problem, the server was reset just as you reboot now.

              Comment

              • glebs.ivanovskis
                Senior Member
                • Jul 2015
                • 237

                #8
                Originally posted by adeptus24
                one question more... we have updated from 2.0 version, in this version we don't have this problem, the server was reset just as you reboot now.
                Sorry, I don't understand your question.

                Comment

                • adeptus24
                  Junior Member
                  • May 2016
                  • 7

                  #9
                  Originally posted by glebs.ivanovskis
                  Sorry, I don't understand your question.
                  Sorry, there was a problem when sending the message in the post, we have updated to version 2.4.8 from a 2.0.6 version, in 2.0.6 version we didn't have this problem and had the same configuration item, it is a change of the 2.4 version? we make a copy of the database in a way that does not have to restart the zabbix_server.

                  Thank you so much for all!!!

                  Comment

                  Working...