Skip to content

Latest commit

 

History

History
87 lines (53 loc) · 2.21 KB

File metadata and controls

87 lines (53 loc) · 2.21 KB

NAME

apt-upgradable - Yet another munin plugin to monitor pending upgrades using apt

APPLICABLE SYSTEMS

Linux servers using the apt package manager with aptitude installed (Ubuntu and Debian derivatives mostly)

DESCRIPTION

Comparison to the other default munin plugins `apt` and `apt_all`. First, both use plain apt to determine the upgrades whereas this plugin uses aptitude. The reason to use aptitude was because of it's useful search syntax, which simplified the plugin.

  • apt

    This plugin does not generate a graph. It's only used to generate warnings.

  • apt_all

    This plugin graphs pending upgrades separated by section. apt-upgradable groups them by importance. Currently only the groups "essential" and "normal" and "important" are available.

CONFIGURATION

NOTE: You may need to schedule updates of apt (apt update) to get the proper values. On Ubuntu systems this is enabled by default!

No configuration is required by default. All parameters are optional.

The plugin assumes that aptitude is available under /usr/bin/aptitude. If it's not available in that location, you can override it with the config variable aptitude_path.

You can change the colors if you want using essential_color and upgrades_color.

Additionally, it's possible to manually specify a list of packages which are considered important for this system. The variables for this are: important and important_color. This is a simple space separated list of package names.

Having non-zero important packages is considered a warning!

Here is a full config example:

[apt-upgradable]
    env.aptitude_path /usr/local/sbin/aptitude
    env.essential_color 0000ff
    env.upgrades_color ffff00
    env.important postgresql apache2
    env.important_color 000000

INTERPRETATION

The graph shows packages that can be upgraded on your system. In general you would want all your packages at the newest version, as this value is increasing, you would want to plan an upgrade procedure.

MAGIC MARKERS

#%# family=auto
#%# capabilities=autoconf

BUGS

None known.

AUTHOR

Michel Albert <michel % albert.lu>

LICENSE

GPLv2