That means, if there is a new version between the last upgrade and the run of the plugin, the check goes CRIT. e.g.: 06:00-07:00 upgrade, new security update published at 10:00, plugin runs at 14:00
So it would be green the next day if the check runs daily, so a naive solution would be to set the notification trigger to 25h.
However, if it is the same case (new version after upgrade) then the check will still be CRIT even though the upgrade was done successfully.
How to configure the check sensibly to minimize false positives?
the apt plugin caches the last result so it will keep reportting the old version until the next run you could clear the cache in a post invoke as suggested or just extend the check interval to somthing like 12h to avoid the window where a new security update appears after the upgrade and before the next check does it make sense to just run the check after the upgrade timer instead of relying on the cache?