check_poldek is nagios plugin for monitoring systems using poldek as package
manager (PLD Linux, or any rpm-based system using poldek). It checks if new
system updates are available.

usage:

poldek [options] [-- extra arguments passed directly to poldek]

available options:
  --version      - print version info and quit
  --help         - print short usage info and quit
  -v             - be verbose (prints errors on stderr)
  -w N           - report warning if there are >= N packages to install (default 5)
  -c N           - report error if there are >= N packages to install (default 10)
  -n, --sn=NAME  - enable repository named NAME
  --cache DIR    - use DIR as poldek cache (default: /tmp/check_poldek)

example configuration:

  nrpe.cfg:
    command[check_poldek]=/usr/lib/nagios/plugins/check_poldek --cache /var/cache/check_poldek -w 5 -c 10 -n th

  commands.cfg:
    define command {
       command_name    check_poldek
       command_line    /usr/lib/nagios/plugins/check_poldek $ARG1$
    }

  services.cfg:
    ; service template defining command (local only) and check/notify intervals
    define service {
      use                     generic-service
      name                    check_poldek
      service_description     check_poldek
      register                0

      ; check every 12h is sufficent, notify daily
      normal_check_interval   720
      notification_interval   1440

      check_command           check_poldek
    }

    define service {
      use                             check_poldek
      host_name                       example_pld_machine
      service_description             POLDEK
      ; for local check
      check_command                   check_poldek!-w 6 -c 10 -n th
      ; for nrpe based check
      check_command                   check_nrpe!check_poldek
    }

Author and Copyright:

  Paweł Zuzelski <pzz@touk.pl>
  Copyright (c) 2009, 2010 TouK sp. z o.o. s.k.a.
  Copyright (c) 2012 Elan Ruusamäe <glen@pld-linux.org>
  Licensed under the terms of MIT license.

TODO:

  see http://wiki.github.com/pawelz/nagios-check_poldek/wishlist
