From 1185456dc68af68bbd41572ffef7f023636d4b96 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 29 Jun 2001 14:34:39 +0000 Subject: [PATCH] Added a parser for NT cpu status lines --- contrib/plugins/spong-server/data_rrd_la | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/plugins/spong-server/data_rrd_la b/contrib/plugins/spong-server/data_rrd_la index f7d6777..822c16f 100755 --- a/contrib/plugins/spong-server/data_rrd_la +++ b/contrib/plugins/spong-server/data_rrd_la @@ -20,7 +20,6 @@ sub data_rrd_la { if ($service ne 'cpu' ) { return; } if ($color eq 'purple' ) { return; } - $time = time; my( $line, $rawfs, $used, $pct, $name, %namemap, $target ); @@ -34,6 +33,10 @@ sub data_rrd_la { $users = $1; $jobs = $2; $load = $3; + } elsif ( $sum =~ m/up\s+(\d+)[^\,]+\,\s+(\d+)\s+procs\,\s+load = ([^,]+)%/ ) { + $users = 1; # This one's for NT + $jobs = $2; + $load = $3; } $load =~ s/%//; -- 2.30.2