Resolve a Potential Challenge Swap with an Object Count Monitor for QMM Archive Files

August 16, 2016

A proactive approach to system monitoring offers a vast number of individual and collective benefits, but there still can be tasks that, despite your best efforts in making the proactive choice, ultimately swap one problem for another. A good example of this is with message archiving. When you archive messages from the message log in QMessage Monitor (QMM) using the MMARCLOG command, this can be a great way to maintain your message history, allowing you to export parts of the log into separate files. However, if ignored, the number of these files on the IBM i can grow substantially, possibly causing an issue with the space they use.

Not to worry! You can easily create an Object Count monitor in QSystem Monitor (QSM) V13, which will proactively notify you when the number of files is reaching a limit that you define. To create the Object Count monitor, follow the steps below.

Step 1 – Open or create an All Systems view window.

Step 2 – Right-click in the All Systems view window and select Group and then Properties for Bar Group.

Step 3 – From the Bar Group Properties window, select Data Selection, and click the Add button. With Data Collection highlighted, select Object Count in the Monitor Type dropdown box. Fill in the parameter fields as follows:

Object Name - LA*
Library Name - MM (MM installed library name)
Object Type - *File

Click on OK when finished, which will populate the All Systems window with the newly created Object Count monitor.

Step 4 – Create a Global Threshold for the newly created Object Count monitor.

With your mouse positioned over one of the new Object Count bars, right-click and select Change LA* Properties, which opens the Data Definition window. Select Global Threshold from the column on the left, and then click Create a Copy. Highlight the Default Threshold for Object Count and click OK.

Step 5 – Modify the Default Threshold Description and Values.

Modify the description field at the top to be more meaningful (such as LA* Files in Library MM - Global Threshold). Now you’ll modify the Value fields at the bottom, starting with the Default Threshold. Double-click on the value (No Threshold), which opens the Threshold Detail Record box. Make the following changes:

Short Translation - &v
Long Translation - Number of LA* files in &2 library on &S is &v

Then click OK.

Step 6 – Create a copy of the Default Threshold. This will become your new Global Threshold.

The threshold you create now will be the one to alert and notify you whenever the number of QMM Archive files (LA*) has exceeded the number that you define in the following steps:

Right-click on the No Threshold value that you modified in the previous step, select Copy, then click OK.

The Threshold Detailed Record box will now be presented, allowing you to define the new record with the following changes being made:

Value - XX (XX is the number of MM archive files that you want to trigger the alert.)
Severity - XX (Severity is a number, and the higher the number, the worse the situation is. The monitor uses the severity to make a number of decisions such as which threshold to display when multiple thresholds are selected in a group, and which elements to display when filtering is being used.)
Color (Clicking the Color button allows you to select a color of your choice, to make it something distinguishable.)
Short Translation - &v
Long Translation - Number of LA* files in &2 library on &S is &v
Send Message on iSeries (Checking this box will cause the monitor program on the i5 to send a MON0079 message to message queues MONTHR and MONTHRLC.)
Click OK twice when finished making the above changes.

Below you’ll now see the modified All Systems view, with the newly created Object Count monitors on the right, showing that the number of QMM Archive files has exceeded the user-defined value.

If you’re not already well on your way towards setting up your Object Count monitor, request a free trial of the new QSystem Monitor and QMessage Monitor today to make sure your archiving issues don’t turn into storage nightmares.


Related Solutions