Automic Workload Automation

  • 1.  Best way to monitor WP usage via scripting

    Posted Jul 14, 2016 05:41 PM

    The script SYS_INFO can be used to check WP usage over a period of time (1min, 10,min or 60min). For example the below script will message a user if the usage goes above 80%:

    :IF SYS_INFO(MQPWP, BUSY, "10") > 80
    :   
    SEND_MSG  SMITH,AE,"Workload of Automation Engine is above 80%"  
    :
    ENDIF

    This script could be run from a Timed Event at an interval. This will check the percent of usage for the Automation Engine but not individual WPs. Alternatively you can check the status of any WP using SYS_SERVER_ALIVE. This will check if the WP is active. For example:

    :IF SYS_SERVER_ALIVE("AE#WP005") = "N"
    :   
    SEND_MSG "ADMIN","AE","Work process AE#WP005  is not active!"
    :
    ENDIF

    Again, you can check in intervals using a Timed Event object.



  • 2.  Best way to monitor WP usage via scripting

    Posted Jul 15, 2016 02:39 PM

    The script SYS_INFO can be used to check WP usage over a period of time (1min, 10,min or 60min). For example the below script will message a user if the usage goes above 80%:

    :IF SYS_INFO(MQPWP, BUSY, "10") > 80
    :   SEND_MSG  SMITH,AE,"Workload of Automation Engine is above 80%"  
    :ENDIF

    This script could be run from a Timed Event at an interval. This will check the percent of usage for the Automation Engine but not individual WPs. Alternatively you can check the status of any WP using SYS_SERVER_ALIVE. This will check if the WP is active. For example:

    :IF SYS_SERVER_ALIVE("AE#WP005") = "N"
    :   SEND_MSG "ADMIN","AE","Work process AE#WP005  is not active!"
    :ENDIF

    Again, you can check in intervals using a Timed Event object.


    I am setting this up, but there are a few items that keep popping up.

    1- Can the actual % be sent in the email that goes out

    2- Since this is using an Automic script to monitor the Automic process, there could be an issue if the whole AE isnt responding. At that point, no notifications would be sent out.

    It would be nice to send this output to a file (Branden from Automic created a java script earlier this week), and then have a non-Automic process verify the contents of the file and send out the notification

    https://community.automic.com/discussion/6638/check-if-the-wp-and-cps-are-running-fine#latest





  • 3.  Best way to monitor WP usage via scripting

    Posted Jul 15, 2016 02:40 PM
    I should have also added that I still like the option, and put it into production






  • 4.  Best way to monitor WP usage via scripting

    Posted Jul 29, 2016 10:07 AM
    Just the thing I was searching for ! Thanks.
    I used this and tried to get the load of the PWP on our System and found out the below -
    • The Usage of PWP in the System Overview always used to show between 10.5% to 11.0 %
    • The Busy time of the PWP from the Script always used to bring up ~25%
    I initially thought the Usage in Sys.Ov. is calculated between full hours - like from 10:00 to 11:00 and the Script always calculates the last 60 minutes.  However, even at the full hour the result was no different.

    My Question -
    1. Is the Script showing the usage of the PWP or the is it something about the Message Queue for PWP ?
    2. If the script shows PWP Load, why is it different to the System Overview - OR what is the co-relation ?
    3. If the script shows MQPWP activity, how can i get the PWP Load (not the complete System Load) ?
    4. Is there any script to get the values just as showed in the System Overview ?

    Hoping for some enlightenment.  o:)   Thanks in advance.