I'm not sure that what you are asking for is achievable sensibly in almost any platform... Even if you could expose the top 10 (via the agent would be the only way). I don't believe it's something that SNMP will expose.
For every 5 minute polling cycle, you want to store the top 10 processes based on CPU % consumption. If you display a graph covering a 24hr period, that is 288 intervals, which gives the potential for 2880 possible processes running (assuming a different top 10 in every polling cycle).
How do you plot 2880 lines on a graph?
Do you take the top 10 of that 2880? What if none of those top-top-10 processes were running during the time of day that you had issues? Then you would have a blank hole in the graph, which would no doubt be even more confusing and the inevitable jumped to conclusion of "why didn't it plot my xyz, it must be broken".
So then you need to catch the *entire* process list at *every* polling cycle. Then do the caclulations after the fact to restore what was active/busy at exactly 7:03am this morning.
I don't see this ending well.
M
On 29 Aug 2018, at 5:31 pm, Kaustubh Parthasarthy, CLSA kaustubh.parthasarthy@clsa.com wrote:
I will give my use case again.
Following is the graphs for running process consumption: <image001.png>
But this graph does not show me what processes are consuming the load like lets say “java” process or something on the graph. Let me give you an example, I sometimes get requests from folks asking, “Ok my memory utilization on a server ABC was 90% on this particular day. Can we get list of processes consuming high memory on that particular day ? “
So as per this, can I customize the graph to get process level info ?
Example below is an graph which is giving top 10 processes consuming the cpu/memory utilization or the top 10 Process ID: <image002.png>
Hence wanted to know can I customize observium graphs to display something like the above screenshot (Obviously look and feel will change) but to get the top process consumption data.
Regards Kaustubh
From: Kaustubh Parthasarthy, CLSA Sent: Wednesday, August 29, 2018 12:55 PM To: 'Mike Stupalov'; Observium Subject: RE: [Observium] Get more information on Dashboard for Process consumption
Why does this not make sense? I already gave my use case when I first asked this querry:
Comments as below:
I have been using observium for few months now. I wanted some info from the graphs that observium spins off.
Following is the graphs for running process consumption:
<image001.png>
Can I get something like top 10 process graphs?
Let me give you an example, I sometimes get requests from folks asking, “Ok my memory utilization on a server ABC was 90% on this particular day. Can we get list of processes consuming high memory on that particular day ? “
So as per this, can I customize the graph to get process level info ?
Regards Kaustubh
From: Mike Stupalov [mailto:mike@stupalov.ru] On Behalf Of Mike Stupalov Sent: Wednesday, August 29, 2018 12:53 PM To: Observium; Kaustubh Parthasarthy, CLSA Subject: Re: [Observium] Get more information on Dashboard for Process consumption
What you mean as "process level".. CPU load?
This is impossible (and it makes no sense), because here is checked if poller process already launched. And records information about the process just created (when there is still no load in it). Kaustubh Parthasarthy, CLSA 29 August 2018 at 10:01 I am trying to get the process level information through observium.
Hence I am trying to leverage the script or if there is anything else you guys can assist me or guide me to.
Regards Kaustubh
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Markus Klock Sent: Wednesday, August 29, 2018 12:29 PM To: Observium Network Observation System Subject: Re: [Observium] Get more information on Dashboard for Process consumption
What exactly is it that you are trying to accomplish here?
/Markus
Den ons 29 aug. 2018 kl 07:04 skrev Kaustubh Parthasarthy, CLSA kaustubh.parthasarthy@clsa.com: The content of this communication is intended for the recipient and is subject to CLSA Legal and Regulatory Notices. These can be viewed at https://www.clsa.com/disclaimer.html or sent to you upon request. Please consider before printing. CLSA is ISO14001 certified and committed to reducing its impact on the environment.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Markus Klock 29 August 2018 at 09:59 What exactly is it that you are trying to accomplish here?
/Markus
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Kaustubh Parthasarthy, CLSA 29 August 2018 at 08:04 # write into db current process info p_query = """INSERT INTO `observium_processes` (`process_pid`,`process_ppid`,`process_name`,`process_uid`,`process_command`,`process_start`,`device_id`) VALUES (%s,%s,%s,%s,%s,%s,'0')""" try: cursor.execute(p_query, (pid,ppid,scriptname,uid,command,s_time)) process_id = db.insert_id() db.commit() except: pass
Can I leverage the above for process level info ?
Regards Kaustubh
From: Kaustubh Parthasarthy, CLSA Sent: Wednesday, August 29, 2018 10:32 AM To: observium@observium.org Subject: RE: [Observium] Get more information on Dashboard for Process consumption
I found the poller-wrapper.py script
Was thinking if I can do some customization on this script. Can you experts please suggest something
Regards Kaustubh
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Wednesday, August 29, 2018 9:14 AM To: observium@observium.org Subject: Re: [Observium] Get more information on Dashboard for Process consumption
There is no script. These are counters pulled from either HOST-RESOURCES-MIB or UCD-MIB via SNMP.
adam. The content of this communication is intended for the recipient and is subject to CLSA Legal and Regulatory Notices. These can be viewed at https://www.clsa.com/disclaimer.html or sent to you upon request. Please consider before printing. CLSA is ISO14001 certified and committed to reducing its impact on the environment.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Adam Armstrong 29 August 2018 at 06:43 There is no script. These are counters pulled from either HOST-RESOURCES-MIB or UCD-MIB via SNMP.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Kaustubh Parthasarthy, CLSA 29 August 2018 at 06:09 Ok,
Can you let me know what script observium uses to pull the performance data ? There has to be script which is running on the system correct.
Regards Kaustubh
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Tuesday, August 28, 2018 6:45 PM To: observium@observium.org Subject: Re: [Observium] Get more information on Dashboard for Process consumption
Hi,
We don't currently collect per-process statistics.
adam. The content of this communication is intended for the recipient and is subject to CLSA Legal and Regulatory Notices. These can be viewed at https://www.clsa.com/disclaimer.html or sent to you upon request. Please consider before printing. CLSA is ISO14001 certified and committed to reducing its impact on the environment.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org
The content of this communication is intended for the recipient and is subject to CLSA Legal and Regulatory Notices. These can be viewed at https://www.clsa.com/disclaimer.html or sent to you upon request. Please consider before printing. CLSA is ISO14001 certified and committed to reducing its impact on the environment.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium