- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Managing working process in HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2006 01:26 AM
01-07-2006 01:26 AM
Managing working process in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2006 02:25 AM
01-07-2006 02:25 AM
Re: Managing working process in HP-UX
LOCK=/tmp/ora_lock
SID={your_oracle_sid}
if [ $(ps -fuoracle|grep [ps]mon_$sid|wc -l) -ne 2 ]; then
if [ -f $LOCK ]; then
exit
else
echo "ORACLE_SID $sid: ORACLE not available" |mailx -s "ORACLE_SID $sid: ORACLE not available" mailaddress
touch $LOCK
fi
else
rm $LOCK 2>/dev/null
fi
You can run this script from crontab each minute.
A similar procedure you can use for monitoring of your application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2006 06:19 PM
01-07-2006 06:19 PM
Re: Managing working process in HP-UX
I used to use BigBrother to monitor Oracle-databases.
There is a new product now GPL-licensed. This product is called Hobbit and can be found at http://sourceforge.net/projects/hobbitmon/
With a plugin you also could monitor tablespaces. Any further questions could be asked in the hobbit userlist.
Regards
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2006 11:24 PM
01-07-2006 11:24 PM
Re: Managing working process in HP-UX
what i have to do to run the script above?
do i have to write in a file ? what is the exc. of the file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 08:00 AM
01-08-2006 08:00 AM
Re: Managing working process in HP-UX
If you want to monitor ORACLE DB, create a file, e.g /usr/local/bin/oramon.sh and insert into in it the following:
#!/usr/bin/sh
LOCK=/tmp/ora_lock
sid={your_oracle_sid}
if [ $(ps -fuoracle|grep [ps]mon_$sid|wc -l) -ne 2 ]; then
if [ -f $LOCK ]; then
exit
else
echo "ORACLE_SID $sid: ORACLE not available" |mailx -s "ORACLE_SID $sid: ORACLE not available" {mailaddress}
touch $LOCK
fi
else
rm $LOCK 2>/dev/null
fi
#END OF THE SCRIPT
You can run this script from crontab each minute as
Run as root:
crontab -e
Edit the file:
* * * * * /usr/local/bin/oramon.sh
Don't forget to make the script executable:
chmod +x /usr/local/bin/oramon.sh
HTH