1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 02:13:44 +01:00
nagios-plugins/check_pkgkit
2013-07-14 23:10:13 +00:00
..
check_pkgkit Print package names 2013-07-14 22:46:30 +00:00
LICENSE-GPL3 Initial commit, without pynag.Plugins 2013-07-14 22:42:47 +00:00
README.md Added a little draft notification.. ;-) 2013-07-14 23:10:13 +00:00

Draft

I haven't finished the implementation yet.

About

This Nagios plugin checks for available updates using PackageKit http://packagekit.org/ on Linux systems

Why a new plugin?

There are already plugins out there like check_yum and check_apt which do check for updates but they are distribution specific. The main drivers are:

  • Can run unprivileged, for instance the nrpe user
  • No sudo/selinux problems
  • Non distribution specific, works on debian, ubuntu, fedora, centos, rhel...

Caveats

  • PackageKit does draw in quite a few packages with it.
  • Does not work on older distros, like centos/rhel 5.

Dependencies

  • pynag-0.4.7+
  • Known to work with PackageKit 0.7.6 or later

Install

  • Install pynag (available through your favorite package manager)
  • Install PackageKit (packagekit in Debian)
wget https://raw.github.com/opinkerfi/nagios-plugins/master/check_pkgkit/check_pkgkit

Room for improvement

The plugin executes pkcon instead of using the API directly. I actually gave the API a whirl via "from gi.repository import PackageKitGlib as packagekit" but the documentation was very lacking so I ended up with pkcon.

License

GPLv3 or newer, see LICENSE-GPL3 in the root of the project