bvstone

Setting Up Message Queue Monitoring with JOBWATCH

Posted:

Setting Up Message Queue Monitoring with JOBWATCH

BVSTools recently announced the release of Job Watch (JOBWATCH) v5.0 which allows you to monitor message queues and send alerts or run programs depending on the criteria set up for the monitor.  This feature requires V7R2 or higher.

To get started, use the JOBWATCHCF command to enter the Job Watch Configuration screen.  You are presented with the main Job Status Maintenance screen which allows you to set up monitors for when jobs enter a specific state (ie, MSGW).

Press the F7 function key and you will be taken to the Job Watch MSGQ Maintenance screen.  When the software is delivered there are sample configurations included (yet not active, active monitors are listed in yellow) that you are able to use as a template if you wish.  One calls a program and the other a command.   Sample programs are also included in source physical file member QRPGLESRC in the JOBWATCH library.

To create a new monitor, enter option 1 on the top blank line.  You can enter a message queue name, message type, message severity and start your command or you can leave all of these blank for now.  When you hit enter you will be taken to a screen where you can enter details for your specific monitor.

You also can use option 3 next to an existing monitor to copy that specific monitor and use it as a starting point.

On the details screen you are presented with all of the available options to use when setting up a message queue monitor as well as the command or program to run.  Most of these options are self-explanatory but let's focus on a couple of them that aren't:

  • Min Severity - This is the minimum severity to check  for on this specific monitor.  This value is inclusive, so if you which to check for messages with a severity of 50 or greater you would enter the value 50 here.  A value of 0 will check for all message severities.
  • Trim - This is a new option that was added in JOBWATCH v5.0 and higher that allows you to specify if you want the replacement data trimmed of blanks when it is used as a substitution value.  In the past the data was always trimmed which, once we added replacement variables that were larger than 32 bytes, caused issues.  When specifying *NO on the value the blanks will not be trimmed and this should keep the data intact.  We suggest using *NO when the replacement variable is used as a parameter on a CALL, and *YES when the value is used as a parameter on a command.  Also, when using a replacement value as a parameter on a CALL to a program, be sure to enclose the replacement value in single quotes.
  • Timestamp -  When JOBWATCH runs and finds any messages that match the criteria you set up, if the timestamp for the message is greater than this value, this timestamp specific to this monitor will be updated with that timestamp.  This is done so that you will not get the same alerts repeatedly.  This is an editable field so you can set it back to any time you want, if needed.  But most of the time when the monitor is originally set up this can be set to a specific date/time and left alone after that, allowing the system to update it.

All of the other options allow you to enter a specific value, or the special value of *ALL, including Message Type.  If you wish to monitor for multiple message types, but not all of them, the interface makes it easy to make one monitor for a specific message type and then copy it many times to set the message type to other message types you wish to monitor for.

When you are done and returned back to the message queue monitor screen, make sure that your new monitor is active.  If the MSGQ Name column is yellow, it is active.  Use option 5 next to a monitor to activate or deactivate it.

More information, including the available replacement values can be see in the JOBWATCH documentation.  And as always free free to contact us with any questions or issues.

 

 


Last edited 10/29/2017 at 07:26:58



Latest Posts:

Update for Google WorkSpace Accounts (2024): Google Dropping Support for Update for Google WorkSpace Accounts (2024): Google Dropping Support for "Less Secure Apps" May 30th, 2022. What Does This Mean for Your IBM i Email?
Posted by January 19, 2024
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Sales By State Report in QuickBooks Online Sales By State Report in QuickBooks Online
Posted by January 13, 2024
QuickBooks >> QuickBooks Online
How to Whitelist GreenTools for G Suite (G4G) For Your Organization How to Whitelist GreenTools for G Suite (G4G) For Your Organization
Posted by November 5, 2023
BVSTools >> BVSTools Software Discussion >> GreenTools for G Suite (Google Apps) (G4G) Specific Discussion
QuickBooks Online Releases QuickBooks Online Releases "New Invoices!"... and It's Terrible!
Posted by October 8, 2023
QuickBooks >> QuickBooks Online
Admin/4i - What is it? Admin/4i - What is it?
Posted by September 30, 2023
Vendor Corner >> MSD Information Technology
BVSTools Releases Send Job Log to BVSTools (SNDLOG2BVS) Command BVSTools Releases Send Job Log to BVSTools (SNDLOG2BVS) Command
Posted by August 28, 2023
BVSTools >> BVSTools Announcements
MAILTOOL Now Allows Email Redirection for Development and Testing MAILTOOL Now Allows Email Redirection for Development and Testing
Posted by May 27, 2023
BVSTools >> BVSTools Announcements >> eMail Tool (MAILTOOL) Specific Announcements
GreenTools for Microsoft Apps (G4MS) Now Supports Footers When Sending Email GreenTools for Microsoft Apps (G4MS) Now Supports Footers When Sending Email
Posted by March 29, 2023
BVSTools >> BVSTools Announcements >> GreenTools for Microsoft Apps (G4MS) Specific Announcements
QuickBooks Online - Subtotals and Discounts Frustration QuickBooks Online - Subtotals and Discounts Frustration
Posted by March 16, 2023
QuickBooks >> QuickBooks Online
Making the Switch From QuickBooks Desktop to QuickBooks Online - No Picnic Making the Switch From QuickBooks Desktop to QuickBooks Online - No Picnic
Posted by March 16, 2023
QuickBooks >> QuickBooks Online
BVSTools Software Verified on V7R5 and Power10 BVSTools Software Verified on V7R5 and Power10
Posted by December 9, 2022
BVSTools >> BVSTools Announcements
Microsoft Office 365 Servers and Random Errors Issue Microsoft Office 365 Servers and Random Errors Issue
Posted by November 14, 2022
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Sending/Resending Emails Using a MIME File with MAILTOOL Sending/Resending Emails Using a MIME File with MAILTOOL
Posted by November 8, 2022
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Sending an HTML Email on Your IBM i Using MAILTOOL Sending an HTML Email on Your IBM i Using MAILTOOL
Posted by November 1, 2022
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Transferring License Keys from One System to Another Transferring License Keys from One System to Another
Posted by October 31, 2022
BVSTools >> BVSTools Software Discussion

Reply




© Copyright 1983-2020 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, CKEditor and running on the IBM i (AKA AS/400, iSeries, System i).