Hi, I'm struggling to find a good trigger for this as i do not understand it fuly. Let me explain:
I'm checking on some Ubuntu servers if there is an security update available and would like to set a trigger if the value is more then 0 for 14 days.(UserParameter=ubuntu_updates.security,apt-get upgrade -s | grep ^Inst | grep -c security).
So i would like to create an alarm if the value is e.g. >0 for longer than 14 days.
This is what ive got but it doesnt seem to work properly: last(/ubuntu-server/ubuntu_updates.security,#1:now-14d)>0
Anyone able to help me in the right direction?
I'm checking on some Ubuntu servers if there is an security update available and would like to set a trigger if the value is more then 0 for 14 days.(UserParameter=ubuntu_updates.security,apt-get upgrade -s | grep ^Inst | grep -c security).
So i would like to create an alarm if the value is e.g. >0 for longer than 14 days.
This is what ive got but it doesnt seem to work properly: last(/ubuntu-server/ubuntu_updates.security,#1:now-14d)>0
Anyone able to help me in the right direction?
. For now this is what i did. look for the value you want, count this in these days, then also look for nondata as new hosts do not have history:
Comment