- add missing changes from previous commit
- update README
This commit is contained in:
12
intr_
12
intr_
@ -52,15 +52,11 @@ if [ $# -lt 1 ]; then
|
||||
cpu)
|
||||
cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^cpu/{split($1,name,":"); print name[1]".value "$2}'
|
||||
;;
|
||||
irq)
|
||||
cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^irq/{split($1,name,":"); print name[1]".value "$2}'
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
elif [ "$1" == "suggest" ]; then
|
||||
echo "cpu"
|
||||
echo "irq"
|
||||
|
||||
elif [ "$1" == "autoconf" ]; then
|
||||
${VMSTAT} -i >/dev/null 2>&1 && echo yes || echo no
|
||||
@ -77,14 +73,6 @@ elif [ "$1" == "config" ]; then
|
||||
|
||||
cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^cpu/{split($1,name,":"); print name[1]".label "$1"\n"name[1]".type DERIVE\n"name[1]".min 0"}'
|
||||
;;
|
||||
irq)
|
||||
echo "graph_title IRQ Statistics"
|
||||
echo "graph_args --lower-limit 0 --base 1000"
|
||||
echo "graph_vlabel interrupts / second"
|
||||
echo "graph_category system"
|
||||
|
||||
cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^irq/{split($1,name,":"); print name[1]".label "$1"\n"name[1]".type DERIVE\n"name[1]".min 0"}'
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
Reference in New Issue
Block a user