Ad Widget

Collapse

Value of item into SQL on anather item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keminc
    Junior Member
    • Sep 2020
    • 3

    #1

    Value of item into SQL on anather item

    Hi everyone!

    Please try to solve a problem with me:
    I have item with date and i need to use this date in another [Database monitor] item into SQL, i try this construction but it isn’t work:

    Code:
    SELECT {Monitoring:balance.date.last()} as dt from dual;
    So, how I can resolve this case and use value of one item into SQL of another?​

  • PeterZielony
    Senior Member
    • Nov 2022
    • 146

    #2
    That's not the correct syntax


    last(/host/key,<#num<:time shift>>)

    ​Never done it this way as you describe but if it would work you would have to fix the syntax to find out

    Hiring in the UK? Drop a message

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      You just cant use one items value as other items paramater(s)....

      Comment

      Working...