Dear Users,
following trigger is causing flapping all the time and i do not see why.
What i want:
If for the last 24 hours, the value is greater than 0, the trigger should be active.
If the last value is smaller than 1, the trigger should be inactive.
Any help is greatly appreciated.
Thank you.
following trigger is causing flapping all the time and i do not see why.
Code:
({TRIGGER.VALUE}=0 and {linux_ubuntu_updatestatus:system.run["/usr/lib/update-notifier/apt-check 2>&1 |cut -d\";\" -f2 "].count(#288,0,"gt")}>=288)
or
({TRIGGER.VALUE}=1 and {linux_ubuntu_updatestatus:system.run["/usr/lib/update-notifier/apt-check 2>&1 |cut -d\";\" -f2 "].last()} < 1)
If for the last 24 hours, the value is greater than 0, the trigger should be active.
If the last value is smaller than 1, the trigger should be inactive.
Any help is greatly appreciated.
Thank you.
Comment