Hi
I'm just curious can PRTG monitor the running process in the server? and if yes what sensor it is. Thanks
Article Comments
Yes, but it will just monitor the services you'd like to monitor. how about other running process?how am i going to monitor the running process in the server?which application eat resources. Something you can compare to other sensor like cpu, memory, etc.
Nov, 2015 - Permalink
How about the ProcessResourceXML sensor ?
This sensor monitors resources used by a process.
Nov, 2015 - Permalink
Hi
Thanks again for replying in my question, i haven't try to use this sensor but i will try. just one more question how can i monitor the running process in linux and aix? i mean not a specific process but the entire process running on that machine.
Nov, 2015 - Permalink
You'll probably have to write your own script that uses pidstat (http://www.cyberciti.biz/open-source/command-line-hacks/linux-monitor-process-using-pidstat/)
Nov, 2015 - Permalink
Hi Stephan
i already check the link listed above, just one question how about in windows?is there any script available for windows? Thanks
Nov, 2015 - Permalink
no i mean is there any way to monitor all running process in server using prtg (linux/unix/windows)?not just concentrating to just particular process?this is valuable in my opinion because we run most of our server in VM esxi so if i can list all running process in every VM then probably we can predict the sizing per server and then maybe we have an overall picture of what are the process running in server. and finally kill those process that is not need in the operation.
sorry for my english :D
Dec, 2015 - Permalink
Well I have a script that monitors a set of processes on a linux host. However, it only monitors if the process is actually running... Not sure that's what you're looking for :)
Dec, 2015 - Permalink
Hi Stephan,
Thanks for your input but i guess that not what i'm looking for. Are you familiar with sysinternals process explorer of windows? that's what im looking for to be integrated in PRTG. i guess that is nice to have because viruses, worm, botnet, malware are everywhere. Please let me know if you have an alternative work around for this, because my boss look for this type of monitoring.
Dec, 2015 - Permalink
This will have to be done with a custom sensor, if the process sensor is not sufficient for you. Note that the granularity of the process explorer probably can't be mimicked in PRTG. If you're looking for deep app monitoring solutions, have a look at NewRelic and AppDynamics. They're more specialized in that field than we are :)
Dec, 2015 - Permalink
This probably will be a pain to integrate. The following PowerShell script will output the processes and their ram usage in byte:
param($target) $Processes = get-process -ComputerName $target | Group-Object -Property ProcessName Write-Host '<?xml version="1.0" encoding="UTF-8"?><prtg>' Write-Host (@" <result> <channel>{0}</channel> <value>{1}</value> <Unit>Count</Unit> </result> "@ -f "Running processes",$Processes.Count) foreach($Process in $Processes) { $Obj = New-Object psobject $Obj | Add-Member -MemberType NoteProperty -Name Name -Value $Process.Name $Obj | Add-Member -MemberType NoteProperty -Name Mem -Value ($Process.Group|Measure-Object WorkingSet -Sum).Sum Write-Host (@" <result> <channel>{0}</channel> <value>{1}</value> <Unit>BytesMemory</Unit> </result> "@ -f $Obj.Name,$Obj.Mem) } Write-Host ("<Text>{0} processes are currently running</Text></prtg>" -f $Processes.Count);
Our EXE/Script XML sensor is destined for this :) However, you'll have to make sure that the script sensor needs the setting "Use credentials of parent device" (within the sensor). The credentials entered in the device configuration need administrative privileges on the target host, otherwise it won't work. Enter %host as parameter and you should be all set.
Note that you'll also have a lot of "dead" channels containing no values, depending on the amount of processes (the value will be 0 but the channel won't disappear).
Dec, 2015 - Permalink
Hi, Nezky
Did you already have a look at the Windows Process Sensor ?
Nov, 2015 - Permalink