I have a map running that shows top 10 CPU, I would like to know if there is a way to associate and show with the processes on the relevant node either by some standard process or grammatically?
Thanks, James.
Article Comments
Hi Arne,
Thanks for the reply. So to clarify, If i created a sensor for each Linux device a custom SSH script that ran a command like ps -eo pcpu,pid,user | sort -k 1 -r | head -6 to show me the top 5 processes by CPU can these be displayed in PRTG? and could I then create a custom top list to display the top 10 servers by CPU load?
Thanks, James.
Sep, 2014 - Permalink
Dear James
Sadly is it not that easy, as a PRTG sensor message cannot have line breaks. Each message is a string up to 2000 characters log, allowing you to show messages but not lists or tables. This means you would need 10 sensors to show 10 messages.
An Exe/Script sensor has the output format
value:message
For example
55:emacs
or
1004:hangman
The message here is "emacs" or "hangman". The value is the value stored in the historic data (sensor messages are not stored in the historic data!)
Sep, 2014 - Permalink
Dear James
Since there is no standard PRTG component for this, you could use a custom script which gets the process names (for example using Powershell) and creates a sensor message. The map object 'Status Icon' / 'Sensor Message only' allows to display the sensor name and message only.
Sep, 2014 - Permalink