Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/imapproxy/imapproxy_multi | ||
|---|---|---|
| 1 | 1 |
#!/usr/bin/env python |
| 2 | 2 |
|
| 3 | 3 |
"""=cut |
| 4 |
=head1 NAME
|
|
| 4 |
=head1 NAME |
|
| 5 | 5 |
|
| 6 | 6 |
imapproxy - Munin multigraph plugin to monitor imapproxy using pimpstat |
| 7 | 7 |
|
| ... | ... | |
| 55 | 55 |
print "cache_misses.type DERIVE" |
| 56 | 56 |
print "cache_misses.label Cache Misses" |
| 57 | 57 |
print "cache_misses.min 0" |
| 58 |
print
|
|
| 58 |
|
|
| 59 | 59 |
print "multigraph imapproxy_connections" |
| 60 | 60 |
print "graph_title Connection Statistics For ImapProxy" |
| 61 | 61 |
print "graph_args -l 0 --base 1000" |
| ... | ... | |
| 79 | 79 |
connections_created = 0 |
| 80 | 80 |
connections_reused = 0 |
| 81 | 81 |
connections = Popen( |
| 82 |
"pimpstat -c | egrep '(Total (Reused|Created)|Cache (Hits|Misses))'",
|
|
| 82 |
"pimpstat -c | egrep '(Total (Reused|Created)|Cache (Hits|Misses))'", |
|
| 83 | 83 |
shell=True, |
| 84 | 84 |
stdout=PIPE |
| 85 | 85 |
) |
Formats disponibles : Unified diff