Changeset 2352
- Timestamp:
- 08/18/09 01:58:18 (2 years ago)
- Files:
-
- trunk/plugins/node.d.linux/cpu.in (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plugins/node.d.linux/cpu.in
r2293 r2352 78 78 79 79 NCPU=$(egrep '^cpu[0-9]+ ' /proc/stat | wc -l) 80 MAX=$(($NCPU * 100))81 80 if [ "$scaleto100" = "yes" ]; then 82 81 graphlimit=100 83 82 else 84 graphlimit=$ MAX83 graphlimit=$(($NCPU * 100)) 85 84 fi 86 85 echo 'graph_title CPU usage' … … 94 93 echo 'system.label system' 95 94 echo 'system.draw AREA' 96 echo "system.max $MAX"97 95 echo 'system.min 0' 98 96 echo 'system.type DERIVE' … … 101 99 echo 'user.draw STACK' 102 100 echo 'user.min 0' 103 echo "user.max $MAX"104 101 echo 'user.type DERIVE' 105 102 echo 'user.info CPU time spent by normal programs and daemons' … … 107 104 echo 'nice.draw STACK' 108 105 echo 'nice.min 0' 109 echo "nice.max $MAX"110 106 echo 'nice.type DERIVE' 111 107 echo 'nice.info CPU time spent by nice(1)d programs' … … 113 109 echo 'idle.draw STACK' 114 110 echo 'idle.min 0' 115 echo "idle.max $MAX"116 111 echo 'idle.type DERIVE' 117 112 echo 'idle.info Idle CPU time' … … 133 128 echo 'iowait.draw STACK' 134 129 echo 'iowait.min 0' 135 echo "iowait.max $MAX"136 130 echo 'iowait.type DERIVE' 137 131 echo 'iowait.info CPU time spent waiting for I/O operations to finish when there is nothing else to do.' … … 139 133 echo 'irq.draw STACK' 140 134 echo 'irq.min 0' 141 echo "irq.max $MAX"142 135 echo 'irq.type DERIVE' 143 136 echo 'irq.info CPU time spent handling interrupts' … … 145 138 echo 'softirq.draw STACK' 146 139 echo 'softirq.min 0' 147 echo "softirq.max $MAX"148 140 echo 'softirq.type DERIVE' 149 141 echo 'softirq.info CPU time spent handling "batched" interrupts' … … 164 156 echo 'steal.draw STACK' 165 157 echo 'steal.min 0' 166 echo "steal.max $MAX"167 158 echo 'steal.type DERIVE' 168 159 echo 'steal.info The time that a virtual CPU had runnable tasks, but the virtual CPU itself was not running'
