2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/other/cpanp_o
Ævar Arnfjörð Bjarmason 5dd3e258e6 Initial version
2011-12-18 15:10:20 +01:00

22 lines
480 B
Perl
Executable File

#!/usr/bin/env perl
use Modern::Perl;
given ($ARGV[0]) {
when ("config") {
print <<END;
graph_title CPAN modules not up to date
graph_args --base 1000 -l 0
graph_vlabel modules
graph_category CPAN
graph_info The number of installed CPAN modules that aren't up to date
count.label modules
count.type GAUGE
count.info The number of CPAN modules that aren't up to date
END
}
default {
my $num = () = qx[cpanp -o];
say "count.value $num";
}
}