root / plugins / apt / deb_packages / README.md @ 8589c6df
Historique | Voir | Annoter | Télécharger (2,68 ko)
| 1 | b64fa218 | Björn Lässig | munin-debian-packages |
|---|---|---|---|
| 2 | ===================== |
||
| 3 | |||
| 4 | ## Munin Debian Plugin |
||
| 5 | |||
| 6 | With this plugin munin can give you a nice graph and some details where your |
||
| 7 | packages come from, how old or new your installation is. Furtermore it tells |
||
| 8 | you how many updates you should have been installed, how many packages are |
||
| 9 | outdated and where they come from. |
||
| 10 | |||
| 11 | 5fefc9d0 | Steve Schnepp |  |
| 12 | b64fa218 | Björn Lässig | |
| 13 | You can sort installed or upgradable Packages by 'archive', 'origin', 'site', |
||
| 14 | 'label' and 'component' and even some of them at once. |
||
| 15 | |||
| 16 | The script uses caching cause it is quite expensive. It saves the output to a |
||
| 17 | cachefile and checks on each run, if dpkg-status or downloaded Packagefile have |
||
| 18 | changed. If one of them has changed, it runs, if not it gives you the cached |
||
| 19 | version. |
||
| 20 | |||
| 21 | ### Installation |
||
| 22 | |||
| 23 | This plugin has checked on Debian - Wheezy and squeeze. If you want to use it |
||
| 24 | on older installations, tell me whether it works or which errors you had. It |
||
| 25 | 8589c6df | klemens | should run past python-apt 0.7 and python 2.5. |
| 26 | b64fa218 | Björn Lässig | |
| 27 | check out this git repository from |
||
| 28 | |||
| 29 | aptitude install python-apt |
||
| 30 | 5fefc9d0 | Steve Schnepp | git clone git://github.com/munin-monitoring/contrib.git |
| 31 | cd contrib/plugins/apt/deb_packages |
||
| 32 | 46fd4dd4 | Aron Novak | sudo cp deb_packages.py /etc/munin/plugins/deb_packages |
| 33 | b64fa218 | Björn Lässig | sudo cp deb_packages.munin-conf /etc/munin/plugin-conf.d/deb_packages |
| 34 | |||
| 35 | 46fd4dd4 | Aron Novak | Verify the installation by |
| 36 | |||
| 37 | sudo munin-run deb_packages |
||
| 38 | |||
| 39 | b64fa218 | Björn Lässig | ### Configuration |
| 40 | If you copied deb_packages.munin-conf to plugin-conf.d you have a starting point. |
||
| 41 | A typical configuration looks like this |
||
| 42 | |||
| 43 | [deb_packages] |
||
| 44 | # plugin is quite expensive and has to write statistics to cache output |
||
| 45 | # so it has to write to plugins.cache |
||
| 46 | user munin |
||
| 47 | |||
| 48 | # Packagelists to this size are printed as extra information to munin.extinfo |
||
| 49 | env.MAX_LIST_SIZE_EXT_INFO 50 |
||
| 50 | |||
| 51 | # Age in seconds an $CACHE_FILE can be. If it is older, the script updates |
||
| 52 | # default if not set is 3540 (one hour) |
||
| 53 | # at the moment this is not used, the plugin always runs (if munin calls it) |
||
| 54 | # |
||
| 55 | env.CACHE_FILE_MAX_AGE 3540 |
||
| 56 | |||
| 57 | # All these numbers are only for sorting, so you can use env.graph01_sort_by_0 |
||
| 58 | # and env.graph01_sort_by_2 without using env.graph01_sort_by_1. |
||
| 59 | # sort_by values ... |
||
| 60 | # possible values are 'label', 'archive', 'origin', 'site', 'component' |
||
| 61 | env.graph00_type installed |
||
| 62 | env.graph00_sort_by_0 label |
||
| 63 | env.graph00_sort_by_1 archive |
||
| 64 | env.graph00_show_ext_0 origin |
||
| 65 | env.graph00_show_ext_1 site |
||
| 66 | |||
| 67 | env.graph01_type upgradable |
||
| 68 | env.graph01_sort_by_0 label |
||
| 69 | env.graph01_sort_by_1 archive |
||
| 70 | env.graph01_show_ext_0 origin |
||
| 71 | env.graph01_show_ext_1 site |
||
| 72 | |||
| 73 | You can sort_by one or some of these possible Values |
