Ad Widget

Collapse

How to consider nodata as 0 in trigger expression ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ignace_Frometon
    Junior Member
    • Dec 2021
    • 26

    #1

    How to consider nodata as 0 in trigger expression ?

    Hello there !

    i try to configure a LLD trigger for a process CPU usage.
    It should be triggered if the process uses more than 90% CPU for more than 6 hours.
    i use this expression : min(/templatename/proc.cpuusage.[{#ID}],360m)>={$CPULIMITTRIGGER} and nodata(/templatename/proc.cpuusage.[{#ID}],360m)=0
    The problem is : if the process is discovered with a cpu usage value over 90, the trigger fires immediatly. the item will have an empty history (wich is not null but empty) and only one value which is over 90 (exemple in joined screenshot).

    how can i can set up a trigger expression that handles absences of values as 0 ?
    Attached Files
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    But your trigger is designed to work, if you have only one value during that 6 hours... That nodata=0 does not give anything to it.. If you really want to consider, that there has been also enough checks, then use
    Code:
    ...and count(/host/item,360m)>"your acceptable count of checks>"
    Last edited by cyber; 20-06-2025, 11:06.

    Comment

    • Ignace_Frometon
      Junior Member
      • Dec 2021
      • 26

      #3
      Sir, you made my day. thank you so much.

      Comment

      Working...