Sign in to follow this  
Followers 0
gspino

Scriptomatic Kudos and Question

4 posts in this topic

#1 ·  Posted (edited)

I wrote a little script to monitor a list of specific servers contained in a simple text file. The goal was to ping the server and if it responds within the alloted timeframe, to then check the cpu load. If the server wasn't pingable, or if the cpu was above the designated threshhold, display a tray tip to the user. We have several Metaframe servers which either go offline or the VME's hang due to pegged cpu's. Many of these servers have multiple cpu's and I'm unsure how to tweak this code to check each cpu for load or if I even need to. Comments or suggestions welcome please. Thank you.

Kudo's to SvenP for his AutoIT scriptomatic routines. Without his efforts and those of other dev's here, I'd still be scratching my head.

ServerWatcher.au3

Edited by gspino

Share this post


Link to post
Share on other sites



I wrote a little script to monitor a list of specific servers contained in a simple text file. The goal was to ping the server and if it responds within the alloted timeframe, to then check the cpu load. If the server wasn't pingable, or if the cpu was above the designated threshhold, display a tray tip to the user. We have several Metaframe servers which either go offline or the VME's hang due to pegged cpu's. Many of these servers have multiple cpu's and I'm unsure how to tweak this code to check each cpu for load or if I even need to. Comments or suggestions welcome please. Thank you.

Kudo's to SvenP for his AutoIT scriptomatic routines. Without his efforts and those of other dev's here, I'd still be scratching my head.

Hi gspino,

Sorry for the looong delay but here's an example script to monitor CPU usage.

WMI_MonitorCPU.au3

I have only tested it on a local machine. But I guess it's no problem for you incorporating the code into your script.

Regards,

-Sven

Share this post


Link to post
Share on other sites

Hi gspino,

Sorry for the looong delay but here's an example script to monitor CPU usage.

WMI_MonitorCPU.au3

I have only tested it on a local machine. But I guess it's no problem for you incorporating the code into your script.

Regards,

-Sven

Thanks very much. I have to wait till the w/e to test. I really appreciate the quick reply.

-Glen

Share this post


Link to post
Share on other sites

I am trying to get the cpu usage of an EXCEL.exe process, I noticed in the code that SvenP wrote that there is cpu totals. Could you please show me how to get the CPU usage for a particular process.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0