Solved

Unix shell script to check db2 processes

Posted on 2008-10-18
3
627 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 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