mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
- have some dirs
This commit is contained in:
parent
0b089ea777
commit
08346aac58
687 changed files with 0 additions and 0 deletions
21
plugins/cpan/cpanp_o
Executable file
21
plugins/cpan/cpanp_o
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/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";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue