ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Performance Monitoring » How to get Queue depth alert via Email?

Post new topic  Reply to topic
 How to get Queue depth alert via Email? « View previous topic :: View next topic » 
Author Message
zpat
PostPosted: Wed Oct 23, 2002 5:30 am    Post subject: How to get Queue depth alert via Email? Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Does anyone know of a FREE program that I can use to have an Email generated automatically when a queue reaches a certain depth?

I want to send an EMail alert on queue depth and we don't want to purchase a commercial product right now.

We are talking about an AIX based queue manager - MQ 5.1.

Thanks
Back to top
View user's profile Send private message
artham
PostPosted: Sun Oct 27, 2002 11:22 am    Post subject: Reply with quote

Novice

Joined: 13 Feb 2002
Posts: 12

you can write a small shell script or write a simple java program and trigger the queue when ever a queue reaches a certain depth.

define a process (process definition) and in your application identifier give ur java class or shell script and in ur enviroment data set it to & so that the shell script runs as a backend process.

if u run it with java set classpath so that it gets the java classes it needs.

hope this helps.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sun Oct 27, 2002 9:39 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

Hi,

I wrote a stand-alone Java application (JMailer) to send an email via SMTP. You can download at:
http://www.capitalware.biz/unix_general.html#javacode

In the Process definition for the application identifier, just put something like java JMailer parameters... &

later
Roger...
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
aixmurderer
PostPosted: Mon Oct 06, 2003 12:23 pm    Post subject: Reply with quote

Newbie

Joined: 12 Aug 2002
Posts: 9

A shell script running from the crontab will do it:


#Local Queue depth
LQLEVEL=100

CNT=`echo "dis q($i) curdepth" | runmqsc | grep CUR | awk '{ print $2 }'|cut -c 10-|sed -e 's/)//'`

if [ "$CNT" -ge "$LQLEVEL" ]
then
echo "$i queue depth is $CNT!"| mail someone@somewhere.com
fi
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Performance Monitoring » How to get Queue depth alert via Email?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.