https://github.com/lgbff/lgb_check_mk_plugins/tree/master/aptng
This plugin can check for available updates via apt-get on Debian or Ubuntu.
$ wget https://mathias-kettner.de/check_mk_exchange_file.php?HTML=&file=apt-2.7.mkp # 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
Reference: http://www.planet4.se/upgrade-check_mk-omd-and-install-mkp-files/
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