How create an action that gets process-list?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mrw
Posts: 195
Joined: Mon Oct 08, 2012 6:11 am

How create an action that gets process-list?

Post by mrw »

Hi,
Is there a way to create an action for a test that somehow reads all currently running processes and how much memory and cpu they use?
Sort of like a snapshot on how it looked at the time of the alarm.

The obvious test for this would be CPU Usage test. When that test triggers an alarm of 100% usage it would be very helpful to see all this.

This could be saved either to a textfile or included in an alert email, or any other appropriate reportformat.

//Andreas..
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

As you know HostMonitor does not have such action.
There is list of actions
http://www.ks-soft.net/hostmon.eng/index-actions.htm

You may find some 3rd party utility or create your own (e.g. you may get various information using powershell script) and then use "Execute external program" action to launch this utility.

On the other hand, if CPU usage = 100%, then why do you need list of all processes? I think you just need process that uses most of CPU resources.
In such case you may use Dominant Process test method
http://www.ks-soft.net/hostmon.eng/mfra ... topprocess
Same test can be used to check memory, handles, threads...

HostMonitor version 10 comes with "System info" feature. May be we can create command line utility to collect similar data. If other customers need such option as well...
http://www.ks-soft.net/cgi-bin/phpBB/vi ... 3&start=17

Regards
Alex
Post Reply