1
0
Fork 0
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:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -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}'