Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/condor/condor_activity_ | ||
|---|---|---|
| 4 | 4 |
# |
| 5 | 5 |
# Author: Šarūnas Burdulis, sarunas(a)mail.saabnet.com, 2008 |
| 6 | 6 |
# |
| 7 |
# Runs 'condor_status' and counts virtual machines by their
|
|
| 8 |
# reported Condor "activity" (Idle, Busy, Suspended, Vacating, Benchmarking).
|
|
| 7 |
# Runs 'condor_status' and counts virtual machines by their |
|
| 8 |
# reported Condor "activity" (Idle, Busy, Suspended, Vacating, Benchmarking). |
|
| 9 | 9 |
# |
| 10 | 10 |
# Parameters understood: |
| 11 | 11 |
# |
| ... | ... | |
| 18 | 18 |
# env.condor_status - Path to condor_status executable, |
| 19 | 19 |
# defaults to /usr/local/condor/bin/condor_status |
| 20 | 20 |
# env.constraint - Condor ClassAds constraint(s), as they are |
| 21 |
# specified on the condor_status command line. For example,
|
|
| 21 |
# specified on the condor_status command line. For example, |
|
| 22 | 22 |
# to monitor 64-bit Linux nodes set: |
| 23 | 23 |
# env.constraint 'arch=="x86_64" && opsys=="linux"' |
| 24 | 24 |
# |
| ... | ... | |
| 49 | 49 |
else |
| 50 | 50 |
CONS= |
| 51 | 51 |
fi |
| 52 |
|
|
| 52 |
|
|
| 53 | 53 |
if [ "$1" = "autoconf" ]; then |
| 54 | 54 |
echo "no" |
| 55 | 55 |
exit 1 |
| ... | ... | |
| 73 | 73 |
echo "idl.label Idle" |
| 74 | 74 |
echo "idl.draw AREA" |
| 75 | 75 |
echo "idl.type GAUGE" |
| 76 |
echo "idl.info Idle VMs"
|
|
| 76 |
echo "idl.info Idle VMs" |
|
| 77 | 77 |
echo "bus.label Busy" |
| 78 | 78 |
echo "bus.draw STACK" |
| 79 | 79 |
echo "bus.type GAUGE" |
| ... | ... | |
| 94 | 94 |
fi |
| 95 | 95 |
|
| 96 | 96 |
echo -n "idl.value " |
| 97 |
eval $CS $CONS | grep Idle | wc -l
|
|
| 97 |
eval $CS $CONS | grep Idle | wc -l |
|
| 98 | 98 |
echo -n "bus.value " |
| 99 |
eval $CS $CONS | grep Busy | wc -l
|
|
| 99 |
eval $CS $CONS | grep Busy | wc -l |
|
| 100 | 100 |
echo -n "sus.value " |
| 101 |
eval $CS $CONS | grep Suspended | wc -l
|
|
| 101 |
eval $CS $CONS | grep Suspended | wc -l |
|
| 102 | 102 |
echo -n "vac.value " |
| 103 |
eval $CS $CONS | grep Vacating | wc -l
|
|
| 103 |
eval $CS $CONS | grep Vacating | wc -l |
|
| 104 | 104 |
echo -n "ben.value " |
| 105 |
eval $CS $CONS | grep Benchmarking | wc -l |
|
| 105 |
eval $CS $CONS | grep Benchmarking | wc -l |
|
Formats disponibles : Unified diff