CPU usage is not accurate on a per process basis.

Bug #1536737 reported by Ben Kietzman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
centralmon
Fix Released
Medium
Ben Kietzman

Bug Description

Chris Weaver from AT&T reported that the CPU usage was not accurate on a per process basis. The alarms being triggered on a server level were not matching what he was viewing in the system.

Revision history for this message
Ben Kietzman (ben-kietzman) wrote :

Here is the existing logic used to fetch the CPU usage on a per process basis:

ps -e -o pcpu,comm | grep -v 'CPU' | grep -v 'migration/' | grep -v '-'

Changed in centralmon:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Ben Kietzman (ben-kietzman)
Revision history for this message
Ben Kietzman (ben-kietzman) wrote :

Chris Weaver from AT&T provided the following command to use as a replacement:

top -b -n 1 | sed -n '8,$p'| awk '{print $9, $12}'

This command has been implemented and confirmed as being more accurate.

Changed in centralmon:
status: Confirmed → In Progress
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.