Révision ae4e85ab
Plugin-Gallery: Better 2nd level headings
| plugins/other/uustat | ||
|---|---|---|
| 12 | 12 |
# |
| 13 | 13 |
# Environment |
| 14 | 14 |
# exclude: space separated list hosts to exclude. |
| 15 |
# category: category of this plugin, default 'postfix' |
|
| 16 | 15 |
# host.warning: Warning packages threshold, default none. |
| 17 | 16 |
# host.critical: Critical packages threshold, default none. |
| 18 | 17 |
# |
| ... | ... | |
| 88 | 87 |
} |
| 89 | 88 |
|
| 90 | 89 |
if (@ARGV > 0 && $ARGV[0] eq 'config') {
|
| 91 |
my $category = $ENV{'category'} || 'postfix';
|
|
| 92 | 90 |
|
| 93 | 91 |
print "graph_title UUCP usage \n"; |
| 94 | 92 |
print "graph_args -l 0\n"; |
| 95 | 93 |
print "graph_vlabel packages\n"; |
| 96 | 94 |
print "graph_scale no\n"; |
| 97 |
printf "graph_category %s\n", $category;
|
|
| 95 |
print "graph_category postfix\n";
|
|
| 98 | 96 |
|
| 99 | 97 |
foreach my $host (hosts) {
|
| 100 | 98 |
next if host_excluded $host; |
Formats disponibles : Unified diff