Solved

Unix shell script to check db2 processes

Posted on 2008-10-18
3
625 Views
Last Modified: 2013-12-26
Hi Experts.
 Need put in a cron job a script that checks for the db2 processes every 5 minutes and pages me  when  it is down?(when the process are down). Please can some one write executable script and crontab format.
0
Comment
Question by:sysadm08
  • 2
3 Comments
 
LVL 2

Expert Comment

by:Benji_
ID: 22747556
what kind of page are you looking for  email???

or sms
0
 
LVL 37

Accepted Solution

by:
momi_sabag earned 500 total points
ID: 22747574
checking that the db2 processes are up can be very easy;
ps -ef | grep db2inst1 (assuming db2inst1 is the user that runs your db2 deamons)

sending the pager - that depends, do you have an application that can page you?
0
 
LVL 2

Expert Comment

by:Benji_
ID: 22747578
i advise hyperspin.com and use there free monitoring tool for that app.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now