Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/openvz/openvz-load-avg | ||
|---|---|---|
| 1 | 1 |
#!/usr/bin/perl |
| 2 |
#
|
|
| 2 |
# |
|
| 3 | 3 |
# Copyright (c) 2008, Maxime Besson |
| 4 | 4 |
# Copyright (c) 2011, David Bernard |
| 5 |
#
|
|
| 5 |
# |
|
| 6 | 6 |
# Permission to use, copy, modify, and/or distribute this software for any |
| 7 | 7 |
# purpose with or without fee is hereby granted, provided that the above |
| 8 | 8 |
# copyright notice and this permission notice appear in all copies. |
| 9 |
#
|
|
| 9 |
# |
|
| 10 | 10 |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 11 | 11 |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 12 | 12 |
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| ... | ... | |
| 15 | 15 |
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 16 | 16 |
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 17 | 17 |
# |
| 18 |
#
|
|
| 18 |
# |
|
| 19 | 19 |
# Graph VE load averages on an OpenVZ server |
| 20 | 20 |
# |
| 21 | 21 |
# This plugin needs root privileges to call vzlist, so add this : |
| ... | ... | |
| 62 | 62 |
# Dynamic config |
| 63 | 63 |
my @result=`/usr/sbin/vzlist -H -a -s veid -o veid,name`; |
| 64 | 64 |
my $A=0; # draw an area only under the first line |
| 65 |
|
|
| 65 |
|
|
| 66 | 66 |
for (@result ) {
|
| 67 | 67 |
( my $veid,my $label ) = /^\s*(\d+)\s*([\w\-]+)\s*$/ ; |
| 68 | 68 |
my $name = $label; |
Formats disponibles : Unified diff