#!/bin/sh

#%# family=auto
#%# capabilities=autoconf


if [ "$1" = "autoconf" ]; then
        echo 'yes'
        exit 0
fi

if [ "$1" = "config" ]; then

        echo 'graph_title Load average'
		echo 'graph_category system'
        echo 'load.label load'
        exit 0
fi

# Hmm. Antall elementer endrer seg. (15 - 18)
# 4:30pm  up 81 day(s), 10 min(s),  4 users,  load average: 0.89, 0.55, 0.51
#

printf "load.value "
/bin/uptime | sed -e 's/.*, \([\.0-9]*\),.*/\1/g'

