Discussion:
Distributed Queue Manager Error Log Monitoring
Tim Zielke
2013-09-17 16:46:13 UTC
Permalink
Hello,

In case anyone is interested, I have a C parser program that can read a queue manager error log (i.e. AMQERR01.LOG) and only display the entries for a given date and also exclude entries that match a user defined AMQ exclude list. For example, you could go get just the previous days entries from an AMQERR01.LOG file, but also exclude any entries that have AMQ5022 in the message.

We have a server that can connect to our 70+ Unix/Linux servers. So I am using a script to go out to all of our queue managers and run this parser program to send back one report that has an edited list of the previous days AMQERR01.LOG entries for all our Unix/Linux queue managers.

If anyone is interested in the C parser program, I would be happy to share it.

Also, I was curious if there were any other *FREE* products out there that others are using for distributed queue manager error log monitoring. I did some internet searches before going down this path of developing it myself, and did not find any hits.

Thanks,
Tim Zielke
CICS/MQ Systems Programmer
Aon

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
LM Demey (MQ)
2013-09-17 16:51:57 UTC
Permalink
hello,

may be you can publish it as a Support Pack ?
Post by Tim Zielke
Hello,
In case anyone is interested, I have a C parser program that can read
a queue manager error log (i.e. AMQERR01.LOG) and only display the
entries for a given date and also exclude entries that match a user
defined AMQ exclude list. For example, you could go get just the
previous days entries from an AMQERR01.LOG file, but also exclude any
entries that have AMQ5022 in the message.
We have a server that can connect to our 70+ Unix/Linux servers. So I
am using a script to go out to all of our queue managers and run this
parser program to send back one report that has an edited list of the
previous days AMQERR01.LOG entries for all our Unix/Linux queue managers.
If anyone is interested in the C parser program, I would be happy to
share it.
Also, I was curious if there were any other *FREE* products out there
that others are using for distributed queue manager error log
monitoring. I did some internet searches before going down this path
of developing it myself, and did not find any hits.
Thanks,
Tim Zielke
CICS/MQ Systems Programmer
Aon
------------------------------------------------------------------------
List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html>
- Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
Instructions for managing your mailing list subscription are provided
in the Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>
--
Luc-Michel Demey - Freelance WAS & WMQ Expert
http://www.demey-consulting.fr/ - lmd at demey-consulting dot fr


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
T.Rob
2013-09-17 17:42:33 UTC
Permalink
Sounds like a really useful program! Many people in a corporate setting
will be unable to use it unless the license is clearly unencumbered. You
could for example release it under one of the many open source licenses. Or
go through the SupportPac approval process as Luc-Michele suggests. But
without a clear declaration of terms, most folks in a corporate setting
would be breaking their intellectual property guidelines if they used the
source or compiled code.



One question - what happens if your AMQERR01.LOG file rolls over during the
day? Or if it rolls over more than two times during the day? In my
experience, the one time you *really* need the log file is usually when it
is rolling over every minute or two. Often the initial event is long gone
by the time it's possible to look at the logs.



-- T.Rob





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Tim Zielke
Sent: Tuesday, September 17, 2013 12:46 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Distributed Queue Manager Error Log Monitoring



Hello,



In case anyone is interested, I have a C parser program that can read a
queue manager error log (i.e. AMQERR01.LOG) and only display the entries for
a given date and also exclude entries that match a user defined AMQ exclude
list. For example, you could go get just the previous days entries from an
AMQERR01.LOG file, but also exclude any entries that have AMQ5022 in the
message.



We have a server that can connect to our 70+ Unix/Linux servers. So I am
using a script to go out to all of our queue managers and run this parser
program to send back one report that has an edited list of the previous days
AMQERR01.LOG entries for all our Unix/Linux queue managers.



If anyone is interested in the C parser program, I would be happy to share
it.



Also, I was curious if there were any other *FREE* products out there that
others are using for distributed queue manager error log monitoring. I did
some internet searches before going down this path of developing it myself,
and did not find any hits.



Thanks,

Tim Zielke

CICS/MQ Systems Programmer

Aon



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Tim Zielke
2013-09-17 18:12:05 UTC
Permalink
Hi T.Rob,

Thanks for the tip on the licensing/intellectual property issue. These types of barriers frustrate me, but I understand they are there for a reason. I will look into the avenue of a support pack, but I need to clean the code up some before making it presentable as a potential support pack.

For your question about rolling logs, the intent of my program was not for real time monitoring, but more for general awareness of what is being reported in our logs. We have already found a few things that we were not aware of once we turned on the lights. So missing messages due to rolling logs was acceptable for our requirement.

Thanks,
Tim

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Tuesday, September 17, 2013 12:43 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Distributed Queue Manager Error Log Monitoring

Sounds like a really useful program! Many people in a corporate setting will be unable to use it unless the license is clearly unencumbered. You could for example release it under one of the many open source licenses. Or go through the SupportPac approval process as Luc-Michele suggests. But without a clear declaration of terms, most folks in a corporate setting would be breaking their intellectual property guidelines if they used the source or compiled code.

One question - what happens if your AMQERR01.LOG file rolls over during the day? Or if it rolls over more than two times during the day? In my experience, the one time you *really* need the log file is usually when it is rolling over every minute or two. Often the initial event is long gone by the time it's possible to look at the logs.

-- T.Rob


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Tim Zielke
Sent: Tuesday, September 17, 2013 12:46 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Distributed Queue Manager Error Log Monitoring

Hello,

In case anyone is interested, I have a C parser program that can read a queue manager error log (i.e. AMQERR01.LOG) and only display the entries for a given date and also exclude entries that match a user defined AMQ exclude list. For example, you could go get just the previous days entries from an AMQERR01.LOG file, but also exclude any entries that have AMQ5022 in the message.

We have a server that can connect to our 70+ Unix/Linux servers. So I am using a script to go out to all of our queue managers and run this parser program to send back one report that has an edited list of the previous days AMQERR01.LOG entries for all our Unix/Linux queue managers.

If anyone is interested in the C parser program, I would be happy to share it.

Also, I was curious if there were any other *FREE* products out there that others are using for distributed queue manager error log monitoring. I did some internet searches before going down this path of developing it myself, and did not find any hits.

Thanks,
Tim Zielke
CICS/MQ Systems Programmer
Aon

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Glenn Baddeley
2013-09-19 01:30:25 UTC
Permalink
Date/Time stamps in the MQ error logs are in locale specific format, so the
program will need to know or determine the format to be able to parse them
correctly. The header format also changes from version to version.

On my Windows PC MQ 7.1 the header format is:
14/08/2013 10:48:00 - Process(7436.10) User(gbaddele) Program(xxxxxx.exe)
Host(xxxxx) Installation(Installation1)
VRMF(7.1.0.0)

(For 14th August 2013)

On AIX with MQ 7.0.1:
09/07/13 17:12:28 - Process(13631534.1) User(mqm) Program(amqzmur0)
Host(xxxxx)

(For 7th September 2013)

Glenn.

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Firoz Kotta
2013-09-19 01:44:59 UTC
Permalink
Hello Tim,

I would be interested in reviewing the source for Error Log monitoring.


Best regards,

Firoz Kotta
(Cell) 732.470.9049
(Email) firoz.kotta-***@public.gmane.org
(vcard) http://firozkotta.businesscard2.com/
Hello,****
** **
In case anyone is interested, I have a C parser program that can read a
queue manager error log (i.e. AMQERR01.LOG) and only display the entries
for a given date and also exclude entries that match a user defined AMQ
exclude list. For example, you could go get just the previous days entries
from an AMQERR01.LOG file, but also exclude any entries that have AMQ5022
in the message. ****
** **
We have a server that can connect to our 70+ Unix/Linux servers. So I am
using a script to go out to all of our queue managers and run this parser
program to send back one report that has an edited list of the previous
days AMQERR01.LOG entries for all our Unix/Linux queue managers.****
** **
If anyone is interested in the C parser program, I would be happy to share
it. ****
** **
Also, I was curious if there were any other *FREE* products out there that
others are using for distributed queue manager error log monitoring. I did
some internet searches before going down this path of developing it myself,
and did not find any hits.****
** **
Thanks,****
Tim Zielke****
CICS/MQ Systems Programmer****
Aon****
------------------------------
List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage
Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1>-
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Tim Zielke
2013-09-19 12:38:12 UTC
Permalink
Hi Glen,

Thanks for the tips. Yes, in testing out this program on Linux x86, Solaris SPARC, and Windows, the date formats were different on all 3 platforms. For my use cases of 6.0.2, 7.0, and 7.1 on Solaris and 7.1 on Linux and Windows, I found the date format differences to be platform specific and not MQ version specific.

For my program, I put the onus on the caller to pass in a date in the format of mm/dd/yyyy and the OS platform, and then I parse it accordingly. However, it does assume a US centric date format in the parsing of the error log file.

Just to temper expectations, this qmgr error log parser is not a robust program. The original intention here was to provide a template that an administrator could tweak to his/her needs, although it should work out of the box on US centric Linux x86, Solaris, and Windows servers. I submitted a request to have this added as a support pack (albeit a thin one, at that), so hopefully that gets accepted. The intent of having it as a support pack was more to handle the legal concerns like intellectual property.

Thanks,
Tim

-----Original Message-----
From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Glenn Baddeley
Sent: Wednesday, September 18, 2013 8:30 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Distributed Queue Manager Error Log Monitoring

Date/Time stamps in the MQ error logs are in locale specific format, so the
program will need to know or determine the format to be able to parse them
correctly. The header format also changes from version to version.

On my Windows PC MQ 7.1 the header format is:
14/08/2013 10:48:00 - Process(7436.10) User(gbaddele) Program(xxxxxx.exe)
Host(xxxxx) Installation(Installation1)
VRMF(7.1.0.0)

(For 14th August 2013)

On AIX with MQ 7.0.1:
09/07/13 17:12:28 - Process(13631534.1) User(mqm) Program(amqzmur0)
Host(xxxxx)

(For 7th September 2013)

Glenn.

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Mark Taylor
2013-09-19 13:42:47 UTC
Permalink
Have you seen SupportPac MO06 which seems to be in a similar space? Not that
there's necessarily anything wrong with having multiple tools...

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES

Loading...