[Pkg-nagios-devel] Bug#688911: icinga-common: check_apt for localhost

Alexander Wirt formorer at debian.org
Thu Sep 27 04:53:24 UTC 2012


On Wed, 26 Sep 2012, Elrond wrote:

> Package: icinga-common
> Version: 1.7.1-3~bpo60+1
> Severity: wishlist
> 
> Hi,
> 
> I think, it would be a nice idea to have check_apt in the
> default shipped localhost_icinga.cfg. It's quite a simple
> test for a machine. People can still disable it anyway.
> 
> ckeck_apt is in nagios-plugins-basic, which is installed
> anyway. So no extra dependency either.
> 
> I would suggest the following entry, because there is no
> point in running check_apt every 5 minutes:
> 
> define service{
>         use                     generic-service
>         host_name               localhost
>         service_description     Updates Available
>         check_command           check_apt
>         check_interval          720   # 12 hours
>         max_check_attempts      2     # Retry once
>         retry_interval          60    # an hour later
>         }
In fact the plugin is useless unless you setup automatic updates of the apt
index (see /etc/cron.daily/apt). So just adding this can leads to false
results. Therefore I don't think its a good idea to add this by default.

Alex



More information about the Pkg-nagios-devel mailing list