Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 634
  • Last Modified:

Unix shell script to check db2 processes

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
sysadm08
Asked:
sysadm08
  • 2
1 Solution
 
Benji_Commented:
what kind of page are you looking for  email???

or sms
0
 
momi_sabagCommented:
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
 
Benji_Commented:
i advise hyperspin.com and use there free monitoring tool for that app.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now