Wednesday, March 23, 2016

check_mk OMD apt plugin

Thanks for the great work from [Karsten Schoeke, Stefan Schlesinger]

This plugin can check for available updates via apt-get on Debian or Ubuntu.
$ wget
# su - milliondollarserver_monitor
$ check_mk -P install /tmp/apt-2.7.mkp

$ check_mk -vP list
Name Title            Files
---- ---------------- -----
apt  apt Update check 4

It won't pull the apt data automaticly, to do so.
I add a cron job to apt-get update to trigger the new data every day:
(echo '#!/bin/sh' ; echo '/usr/bin/apt-get update') > /etc/cron.daily/apt-get-update
chmod +x /etc/cron.hourly/apt-get-update


Please notice [milliondollarserver_monitor] is my local OMD project, you will have to replace it by your own project name.

No comments:

Post a Comment