Skip to content

Plugin check_updates

liberodark edited this page Oct 3, 2019 · 13 revisions

Fonctionality :

./check_updates
Usage: ./check_updates [-w <warn_treshold>] [-c <crit_treshold>] [-security-update] [-update] [-y]

Exemple :

Apply Security Updates

./check_updates -security-update

Apply Security Updates with no confirmation

./check_updates -security-update -y

Apply All Updates

./check_updates -update

Apply All Updates with no confirmation

./check_updates -update -y

For Centos 7 / 8 need to install :

sudo yum install PackageKit -y
sudo systemctl enable --now packagekit

For Fedora 29 need to install :

sudo dnf install PackageKit -y
sudo systemctl enable --now packagekit

For Debian 10 need to install :

sudo apt install packagekit -y

On Nagios - NRPE :

With visudo

nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_updates

This plugin need a root access for work correctly.

Troubleshooting :

This plugin recommends using PackageKit 1.1.10 or later.

On Debian 8 & 9 is not working great no use for make updates.

NRPE Socket timeout after 10 seconds :

Is recomended to use :

$USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c update -a $ARG1$ $ARG2$

Clone this wiki locally
You can’t perform that action at this time.