1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

multicpu1sec: enable up to 99 CPUs

This commit is contained in:
Steve Schnepp 2013-02-04 15:21:25 +01:00
parent 5090a771c8
commit 729c61237a

View file

@ -26,7 +26,7 @@ run_watchdog() { # should also trap kill and term signals
run_acquire() {
echo "$$" > $pidfile
LANG=C mpstat -P ALL $interval |
awk -v cpus=$cpus '$2>=0&&$2<10 {print $2, systime(), (100-$11)/cpus; system("");}' >> $cache
awk -v cpus=$cpus '$2>=0&&$2<99 {print $2, systime(), (100-$11)/cpus; system("");}' >> $cache
rm -f $pidfile $cache
}