Ad Widget

Collapse

Day-values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andyhse
    Junior Member
    • Sep 2012
    • 12

    #1

    Day-values

    Hello!

    I have a scenario that I would like some help solving.

    1) Data about how many orders a webshop has recieved is sent to an item. This is stored as delta, and is never reset. It simply stores how many orders there is in the database. I would like to know how many orders were added since the last date-change, for example if it is 11:00 am, i would like the delta for the last 11 hours. If possible, I would also like to know how many orders were placed yesterday (so 24 hours back, starting from midnight). I would like to do this as a calculated item.

    2) Another item stores the number of logged in users currently. I would like an item showing the max value for today, meaning max since midnight. Also would like to know yesterday's max if possible..

    Any help with this? Much appreciated!
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    what database has you shop?!
    postgresql/mysql?!
    if yes you can create an query with the *sql-client and push it to zabbix..
    Debian-User

    Sorry for my bad english

    Comment

    • andyhse
      Junior Member
      • Sep 2012
      • 12

      #3
      Originally posted by Shad0w
      what database has you shop?!
      postgresql/mysql?!
      if yes you can create an query with the *sql-client and push it to zabbix..
      The shop itself uses MSSQL, but sure.. I could get the data directly from the shop. I would much rather do it from zabbix if possible though

      Comment

      Working...