Ad Widget

Collapse

Triggers not working like expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • momiars
    Junior Member
    • Apr 2020
    • 1

    #1

    Triggers not working like expected

    I'm relatively new to zabbix so I'm sure I must be missing something. I'm trying to monitor a process I checked that the key works locally on the client using
    Code:
     zabbix_agentd -t  proc.num[,,,ntpd]
    this returns [u|2]

    So when I made the trigger
    Code:
     .[B]last([/B]0[B])[/B]}<2
    however this does not seem to be working if I kill the process or have it running it reports as PROBLEM when I change it to CODE] .last(0)}>2[/CODE] it reports as OK even if the process is down. I have tried the following
    Code:
     .[B]last([/B]0[B])[/B]}<=2
    Code:
     .[B]last([/B]0[B])[/B]}<1
    Code:
     .[B]last([/B]0[B])[/B]}=1
    Code:
     .[B]last([/B]0[B])[/B]}=0
    Code:
     .[B]last([/B]0[B])[/B]}>=1
    Code:
     .[B]last([/B]0[B])[/B]}>=2
    I suspect it may not have to do with the trigger at all and perhaps some miss configuration of the key?
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Can you show the full expression, rather than just what you've tried for the trigger?

    As an example, the full expression we use for monitoring the # of named processes (running as the 'named' user) is

    Code:
    {somehost.example.com:proc.num[named,named].last(0)}<1
    Also, does querying the item like you've done still return [u|2] when you've killed the process?

    Comment

    Working...