Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/memcached/memcached_multi_ | ||
|---|---|---|
| 145 | 145 |
my %items; |
| 146 | 146 |
|
| 147 | 147 |
# This gives us the memory size and usage per slab |
| 148 |
# We track this so we can see what slab is being used the most and has no free chunks
|
|
| 148 |
# We track this so we can see what slab is being used the most and has no free chunks |
|
| 149 | 149 |
# so we can re-tune memcached to allocate more pages for the specified chunk size |
| 150 | 150 |
my %chnks; |
| 151 | 151 |
|
| ... | ... | |
| 396 | 396 |
info => 'This graph shows you the number of items and reclaimed items per slab.', |
| 397 | 397 |
}, |
| 398 | 398 |
datasrc => [ |
| 399 |
{ name => 'number', label => 'Items', draw => 'AREA',
|
|
| 399 |
{ name => 'number', label => 'Items', draw => 'AREA',
|
|
| 400 | 400 |
info => 'This is the amount of items stored in this slab', min => '0' }, |
| 401 | 401 |
], |
| 402 | 402 |
}; |
| ... | ... | |
| 437 | 437 |
=head2 Config Check |
| 438 | 438 |
|
| 439 | 439 |
This block of code looks at the argument that is possibly supplied, |
| 440 |
should it be config, it then checks to make sure the plugin
|
|
| 441 |
specified exists, assuming it does, it will run the do_config
|
|
| 440 |
should it be config, it then checks to make sure the plugin |
|
| 441 |
specified exists, assuming it does, it will run the do_config |
|
| 442 | 442 |
subroutine for the plugin specified, otherwise it dies complaining |
| 443 | 443 |
about an unknown plugin. |
| 444 | 444 |
|
| ... | ... | |
| 584 | 584 |
This subroutine prints out the return values for our non-multigraph root graphs. |
| 585 | 585 |
It takes one parameter $plugin and returns when completed. |
| 586 | 586 |
|
| 587 |
$plugin; graph we are calling up to print data values for
|
|
| 587 |
$plugin; graph we are calling up to print data values for |
|
| 588 | 588 |
|
| 589 | 589 |
Example: print_root_output($plugin); |
| 590 | 590 |
|
| ... | ... | |
| 939 | 939 |
# Lets set our graph reference, and main graph config for easy handling |
| 940 | 940 |
my $graph = $graphs{$sgraph};
|
| 941 | 941 |
my %graphconf = %{$graph->{config}};
|
| 942 |
# Lets tell munin which graph we are graphing, and what our main graph config info is
|
|
| 942 |
# Lets tell munin which graph we are graphing, and what our main graph config info is |
|
| 943 | 943 |
print "multigraph memcached_multi_$plugin.$sgraph\_$slabid\n"; |
| 944 | 944 |
while ( my ($key, $value) = each(%graphconf)) {
|
| 945 | 945 |
if ($key eq 'title') {
|
Formats disponibles : Unified diff