Ad Widget

Collapse

Need help with trigger dependencies

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moshikoy
    Member
    • Aug 2017
    • 56

    #1

    Need help with trigger dependencies

    Hi,
    My goal is to monitor idle user processes
    So i wrote discovery rules to find the processes and monitor their usage (by reading vmsize,cputime and context.

    I'd like to be able to trigger for idle process that are running for 3+ days, 4+days, and 5+ days

    3days trigger
    {Process discovery:custom.ps.etimes[{#PID}].last()}>259200 and
    {Process discovery:custom.ps.vmsize[{#PID}].delta(259200)}=0 and
    {Process discovery:custom.ps.cputime[{#PID}].delta(259200)}=0 and
    {Process discovery:custom.ps.context[{#PID}].delta(259200)}=0

    4days trigger (Depends on: 3days trigger)
    {Process discovery:custom.ps.etimes[{#PID}].last()}>345600 and
    {Process discovery:custom.ps.vmsize[{#PID}].delta(345600)}=0 and
    {Process discovery:custom.ps.cputime[{#PID}].delta(345600)}=0 and
    {Process discovery:custom.ps.context[{#PID}].delta(345600)}=0

    5days trigger (Depends on: 4days trigger)
    {Process discovery:custom.ps.etimes[{#PID}].last()}>432000 and
    {Process discovery:custom.ps.vmsize[{#PID}].delta(432000)}=0 and
    {Process discovery:custom.ps.cputime[{#PID}].delta(432000)}=0 and
    {Process discovery:custom.ps.context[{#PID}].delta(432000)}=0


    There is something that is not right with the triggers, I can see all 3 days trigger alerting. however 4days and 5days triggers are alerting and being resolved after a short while

    Feels like a logic issue with the dependencies

    Using Zabbix 3.4

    - Mosh
Working...