The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Wubot::Plugin::CPAN - verify that the latest versions of all Perl modules are installed

VERSION

version 0.2.5

SYNOPSIS

  # The plugin configuration lives here:
  ~/wubot/config/plugins/CPAN/myhostname.yaml

  ---
  delay: 1d
  timeout: 300
  perl: /usr/local/bin/perl

DESCRIPTION

This plugin checks if there are any perl modules installed locally which have a newer version available on CPAN. The idea was stolen from theory's nagios check:

  https://github.com/theory/check_perl_modules/blob/master/bin/check_perl_modules

I originally tried to steal the logic from the check_perl_modules script, but the script makes a large number of calls (one for every module installed) to a web service (cpanmetadb.appspot.com) which overran its quota several times during my test. So for the time being, it uses the rather ugly approach of parsing the output of the command:

  perl -MCPAN -e 'CPAN::Shell->r'

By default it will use the first 'perl' in the path, although you can set the perl path (see the example above). This makes it possible to configure multiple monitors per host if there is more than one perl installation you want to monitor.

SUBROUTINES/METHODS

check( $inputs )

The standard monitor check() method.