File: load.in

package info (click to toggle)
munin 1.2.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,940 kB
  • ctags: 98
  • sloc: sh: 4,215; makefile: 452; perl: 135
file content (42 lines) | stat: -rwxr-xr-x 931 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh

# $Log$
# Revision 1.3  2004/05/20 19:02:38  jimmyo
# Set categories on a bunch of plugins
#
# Revision 1.2  2004/05/15 21:33:30  jimmyo
# "Upped" som plugins from contrib/manual to manual or auto.
#
# Revision 1.1  2004/01/02 18:50:01  jimmyo
# Renamed occurrances of lrrd -> munin
#
# Revision 1.1.1.1  2004/01/02 15:18:07  jimmyo
# Import of LRRD CVS tree after renaming to Munin
#
# Revision 1.3  2003/11/07 17:43:16  jimmyo
# Cleanups and log entries
#
#%# 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'