How to monitor Linux Updates using local check (python / bash script) and send it to CheckMK

I am looking for a method to monitor linux updates / security patches in CheckMK using local checks (python / bash scripts). If there is any updates going on in linux the status changes to Warning. And after update the status changes back to OK.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum