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.
sysadm08Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
momi_sabagConnect With a Mentor Commented:
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:
what kind of page are you looking for  email???

or sms
0
 
Benji_Commented:
i advise hyperspin.com and use there free monitoring tool for that app.
0
All Courses

From novice to tech pro — start learning today.