mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -4,8 +4,8 @@
|
|||
#
|
||||
# Author: Šarūnas Burdulis, sarunas(a)mail.saabnet.com, 2008
|
||||
#
|
||||
# Runs 'condor_status' and counts virtual machines by their
|
||||
# reported Condor "activity" (Idle, Busy, Suspended, Vacating, Benchmarking).
|
||||
# Runs 'condor_status' and counts virtual machines by their
|
||||
# reported Condor "activity" (Idle, Busy, Suspended, Vacating, Benchmarking).
|
||||
#
|
||||
# Parameters understood:
|
||||
#
|
||||
|
@ -18,7 +18,7 @@
|
|||
# env.condor_status - Path to condor_status executable,
|
||||
# defaults to /usr/local/condor/bin/condor_status
|
||||
# env.constraint - Condor ClassAds constraint(s), as they are
|
||||
# specified on the condor_status command line. For example,
|
||||
# specified on the condor_status command line. For example,
|
||||
# to monitor 64-bit Linux nodes set:
|
||||
# env.constraint 'arch=="x86_64" && opsys=="linux"'
|
||||
#
|
||||
|
@ -49,7 +49,7 @@ if [ ! -z "$constraint" ]; then
|
|||
else
|
||||
CONS=
|
||||
fi
|
||||
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
echo "no"
|
||||
exit 1
|
||||
|
@ -73,7 +73,7 @@ if [ "$1" = "config" ]; then
|
|||
echo "idl.label Idle"
|
||||
echo "idl.draw AREA"
|
||||
echo "idl.type GAUGE"
|
||||
echo "idl.info Idle VMs"
|
||||
echo "idl.info Idle VMs"
|
||||
echo "bus.label Busy"
|
||||
echo "bus.draw STACK"
|
||||
echo "bus.type GAUGE"
|
||||
|
@ -94,12 +94,12 @@ if [ "$1" = "config" ]; then
|
|||
fi
|
||||
|
||||
echo -n "idl.value "
|
||||
eval $CS $CONS | grep Idle | wc -l
|
||||
eval $CS $CONS | grep Idle | wc -l
|
||||
echo -n "bus.value "
|
||||
eval $CS $CONS | grep Busy | wc -l
|
||||
eval $CS $CONS | grep Busy | wc -l
|
||||
echo -n "sus.value "
|
||||
eval $CS $CONS | grep Suspended | wc -l
|
||||
eval $CS $CONS | grep Suspended | wc -l
|
||||
echo -n "vac.value "
|
||||
eval $CS $CONS | grep Vacating | wc -l
|
||||
eval $CS $CONS | grep Vacating | wc -l
|
||||
echo -n "ben.value "
|
||||
eval $CS $CONS | grep Benchmarking | wc -l
|
||||
eval $CS $CONS | grep Benchmarking | wc -l
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
# Author: Šarūnas Burdulis, sarunas(a)mail.saabnet.com, 2008
|
||||
#
|
||||
# Runs 'condor_status -server',
|
||||
# Runs 'condor_status -server',
|
||||
# gets totals for MIPS and KFLOPS.
|
||||
#
|
||||
# Parameters understood:
|
||||
|
@ -19,7 +19,7 @@
|
|||
# env.condor_status - Path to condor_status executable,
|
||||
# defaults to /usr/local/condor/bin/condor_status
|
||||
# env.constraint - Condor ClassAds constraint(s), as they are
|
||||
# specified on the condor_status command line. For example,
|
||||
# specified on the condor_status command line. For example,
|
||||
# to monitor 64-bit Linux nodes only, set:
|
||||
# env.constraint 'arch=="x86_64" && opsys=="linux"'
|
||||
#
|
||||
|
@ -50,7 +50,7 @@ if [ ! -z "$constraint" ]; then
|
|||
else
|
||||
CONS=
|
||||
fi
|
||||
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
echo "no"
|
||||
exit 1
|
||||
|
@ -75,30 +75,30 @@ if [ "$1" = "config" ]; then
|
|||
echo 'mips_cur.min 0'
|
||||
echo 'mips_cur.max 200000'
|
||||
echo 'mips_cur.type GAUGE'
|
||||
echo "mips_cur.info Total (millions of integer operations)/s in Claimed nodes"
|
||||
echo "mips_cur.info Total (millions of integer operations)/s in Claimed nodes"
|
||||
echo 'mips_max.label MIPS max. possible'
|
||||
echo 'mips_max.draw LINE'
|
||||
echo 'mips_max.min 0'
|
||||
echo 'mips_max.max 200000'
|
||||
echo 'mips_max.type GAUGE'
|
||||
echo "mips_max.info Total capability in (millions of integer operations)/s"
|
||||
echo "mips_max.info Total capability in (millions of integer operations)/s"
|
||||
echo 'mflops_cur.label MFLOPS claimed'
|
||||
echo 'mflops_cur.draw LINE2'
|
||||
echo 'mflops_cur.min 0'
|
||||
echo 'mflops_cur.max 200000'
|
||||
echo 'mflops_cur.type GAUGE'
|
||||
echo "mflops_cur.info Total (millions of floating point operations)/s in Claimed nodes"
|
||||
echo "mflops_cur.info Total (millions of floating point operations)/s in Claimed nodes"
|
||||
echo 'mflops_max.label MFLOPS max. possible'
|
||||
echo 'mflops_max.draw LINE'
|
||||
echo 'mflops_max.min 0'
|
||||
echo 'mflops_max.max 200000'
|
||||
echo 'mflops_max.type GAUGE'
|
||||
echo "mflops_max.info Total capability in (millions of floating point operations)/s"
|
||||
echo "mflops_max.info Total capability in (millions of floating point operations)/s"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# max possible:
|
||||
#condor_status -cons 'arch=="x86_64" && opsys=="linux"' -totals -server
|
||||
#condor_status -cons 'arch=="x86_64" && opsys=="linux"' -totals -server
|
||||
# Machines Avail Memory Disk MIPS KFLOPS
|
||||
# Total 30 30 48960 257925730 104576 31092042
|
||||
eval $CS $CONS -totals -server | awk 'BEGIN { mipsc=0; mflopsc=0 } /Total/ {mips = $6; kflops = $7; mflops = int(kflops/1000) } END {print "mips_max.value " mips "\nmflops_max.value " mflops}'
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#
|
||||
# Author: Šarūnas Burdulis, sarunas(a)mail.saabnet.com, 2008
|
||||
#
|
||||
# Runs 'condor_q -g' (list global queue), tail's to the last
|
||||
# line of output (contains job summary) and
|
||||
# Runs 'condor_q -g' (list global queue), tail's to the last
|
||||
# line of output (contains job summary) and
|
||||
# gets numbers of queued, idle, running and held jobs.
|
||||
#
|
||||
# Parameters understood:
|
||||
|
@ -19,7 +19,7 @@
|
|||
# env.condor_q - Path to condor_q executable,
|
||||
# defaults to /usr/local/condor/bin/condor_q
|
||||
# env.title - Graph title, overrides "Condor Queue [suffix]".
|
||||
# env.options - Additional command line options to condor_q.
|
||||
# env.options - Additional command line options to condor_q.
|
||||
# Only a limited set of options can be used, as many
|
||||
# of them eliminate the summary line from condor_q output.
|
||||
#
|
||||
|
@ -87,7 +87,7 @@ if [ "$1" = "config" ]; then
|
|||
echo "queue.label Queue"
|
||||
echo "queue.draw LINE"
|
||||
echo "queue.type GAUGE"
|
||||
echo "queue.info Queue"
|
||||
echo "queue.info Queue"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# env.condor_status - Path to condor_status executable,
|
||||
# defaults to /usr/local/condor/bin/condor_status
|
||||
# env.constraint - Condor ClassAds constraint(s), as they are
|
||||
# specified on the condor_status command line. For example,
|
||||
# specified on the condor_status command line. For example,
|
||||
# to monitor 64-bit Linux nodes only, set:
|
||||
# env.constraint 'arch=="x86_64" && opsys=="linux"'
|
||||
#
|
||||
|
@ -49,7 +49,7 @@ if [ ! -z "$constraint" ]; then
|
|||
else
|
||||
CONS=
|
||||
fi
|
||||
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
echo "no"
|
||||
exit 1
|
||||
|
@ -72,7 +72,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'Preempting.label Preempting'
|
||||
echo 'Preempting.draw AREA'
|
||||
echo 'Preempting.type GAUGE'
|
||||
echo "Preempting.info Slots in Preempting state"
|
||||
echo "Preempting.info Slots in Preempting state"
|
||||
echo 'Claimed.label Claimed'
|
||||
echo 'Claimed.draw STACK'
|
||||
echo 'Claimed.type GAUGE'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue