Ad Widget

Collapse

triggers with diferent types of items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pinarella
    Junior Member
    • May 2013
    • 16

    #1

    triggers with diferent types of items

    Hi,
    i am creating some graphs in which i want trigger to be shown for some value lets say 100 units...
    and the name of that trigger should be the string that is returned from some other item.

    here is the expression how i imaged it

    Trigger name: {ITEM.VALUE2}
    Expression: {monitoring-old:topcpu.last()}>50 & {monitoring-old:topjob.last()}
    Item Type:________Numeric(float)_________________Charac ter
    this combination DOESN'T work,
    when having two numeric items, works just fine.

    does any one have a clue how to solve this?
  • filipp.sudanov
    Senior Member
    Zabbix Certified Specialist
    • May 2014
    • 137

    #2
    {monitoring-old:topcpu.last()}>50 & {monitoring-old:topjob.last()}
    the left part or your expression is compared with 50 and the result of this part is either true or false - that's ok. But the right part is just last(), that is a string, not a true/false. May be something like this helps:
    {monitoring-old:topcpu.last()}>50 & {monitoring-old:topjob.strlen()}>0

    Comment

    Working...