Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / cpan / cpanp_o @ ef960abc

Historique | Voir | Annoter | Télécharger (480 octets)

1
#!/usr/bin/env perl
2
use Modern::Perl;
3

    
4
given ($ARGV[0]) {
5
    when ("config") {
6
        print <<END;
7
graph_title CPAN modules not up to date
8
graph_args --base 1000 -l 0
9
graph_vlabel modules
10
graph_category CPAN
11
graph_info The number of installed CPAN modules that aren't up to date
12
count.label modules
13
count.type GAUGE
14
count.info The number of CPAN modules that aren't up to date
15
END
16
    }
17
    default {
18
        my $num = () = qx[cpanp -o];
19
        say "count.value $num";
20
    }
21
}