Ad Widget

Collapse

how to retrieve latest data in mysql?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jains
    Junior Member
    • Mar 2009
    • 2

    #1

    how to retrieve latest data in mysql?

    hi,
    my issue is related to zabbix and mysql.
    I wish to see "Latest Data" in mysql but unfortunately cannot find in any of the zabbix database tables.

    any help would be highly appreicated.
    thanks
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    Field 'lastvalue' in table 'items' ?

    Comment

    • trikke
      Senior Member
      • Aug 2007
      • 140

      #3
      Hi,

      check lastvalue in items table!

      greets
      Patrick

      Comment

      • jains
        Junior Member
        • Mar 2009
        • 2

        #4
        Thanks for yuor suggestions..
        however, when i try the 'lastvalue' , the column only shows NULL..
        is it possible that there might be some other way to retrieve the lastest data in mysql?

        Comment

        • rue
          Member
          Zabbix Certified Specialist
          • May 2006
          • 43

          #5
          Have a look at the history-tables... .

          history
          history_log
          history_str
          history_sync
          history_text
          history_uint

          You should find the history of all values for all items defined there.

          E.g. "select * from history;" would give you all historic rercords for all sensors that deliver float values... .

          cheers

          RĂ¼

          Comment

          Working...