Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/zope/zeo_monitor_ | ||
|---|---|---|
| 11 | 11 |
# Reads has logarithmic scale |
| 12 | 12 |
# Adjust some scaling factors |
| 13 | 13 |
# Support for INET connections, the new default |
| 14 |
#
|
|
| 14 |
# |
|
| 15 | 15 |
# Invoke using symlinks to zeo_monitor_ in the form zeo_monitor_{clients,reads,writes,errors}_<storage_name>
|
| 16 | 16 |
# |
| 17 | 17 |
# This plugin can be configured manually or by autoconf (provided that the ZEO |
| ... | ... | |
| 26 | 26 |
# ln -s /usr/share/munin/plugins/zeo_monitor_ /etc/munin/plugins/zeo_monitor_reads_temp |
| 27 | 27 |
# ln -s /usr/share/munin/plugins/zeo_monitor_ /etc/munin/plugins/zeo_monitor_writes_1 |
| 28 | 28 |
# ln -s /usr/share/munin/plugins/zeo_monitor_ /etc/munin/plugins/zeo_monitor_writes_temp |
| 29 |
#
|
|
| 29 |
# |
|
| 30 | 30 |
# |
| 31 | 31 |
# Configuration variables: |
| 32 | 32 |
# |
| ... | ... | |
| 131 | 131 |
########## |
| 132 | 132 |
|
| 133 | 133 |
if ( $ARGV[0] and $ARGV[0] eq "config") {
|
| 134 |
|
|
| 134 |
|
|
| 135 | 135 |
print <<"EOF"; |
| 136 | 136 |
graph_title ZEO $mode for storage $storage_name |
| 137 | 137 |
graph_args --base 1000 --lower-limit 0 |
| ... | ... | |
| 258 | 258 |
) |
| 259 | 259 |
\n |
| 260 | 260 |
/sx; |
| 261 |
|
|
| 261 |
|
|
| 262 | 262 |
my %name_var=( |
| 263 | 263 |
'Clients' => 'clients', |
| 264 | 264 |
'Commits' => 'commits', |
| ... | ... | |
| 268 | 268 |
'Conflicts' => 'conflicts', |
| 269 | 269 |
'Conflicts resolved' => 'conflictsres', |
| 270 | 270 |
); |
| 271 |
|
|
| 271 |
|
|
| 272 | 272 |
my %stats=(); |
| 273 | 273 |
foreach (split /\n/, $stats) {
|
| 274 | 274 |
(my $name,my $value)=split ': ',$_,2; |
| ... | ... | |
| 276 | 276 |
next unless $var; |
| 277 | 277 |
$stats{$var}=$value;
|
| 278 | 278 |
} |
| 279 |
|
|
| 279 |
|
|
| 280 | 280 |
return %stats; |
| 281 | 281 |
|
| 282 | 282 |
} |
Formats disponibles : Unified diff