I want my server to notify me about pending security updates. But I don't want to get notifications about all available updates. How can I do this?
I want my server to notify me about pending security updates. But I don't want to get notifications about all available updates. How can I do this?
To answer my own question: I wrote a small ruby script, which scans the text file than is shown on login containing the security update info: 5 updates are security updates
It can even log into other machines via ssh and check that machine as well for security updates. A ssh key without passphrase is required, though. Would be a good idea to limit the rights of that user as much as possible.
It's written as simple as possible, so even without ruby knowledge it should be understandable.
Set up a cron job to run once per day. I run this script now for several months and it's working fine. If Debian shows the same login message, it should work for Debian systems as well.
Not this is written for Ruby 1.9. I recommend upgrading, as there are no security updates for 1.8 anymore, but it should run if you change the Hash syntax back to the old style (
:key => 'value'
instead ofkey: 'value'
)Similar solution as sh script