- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script Needed for Paging support when application ...
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-25-2006 02:18 AM
01-25-2006 02:18 AM
Script Needed for Paging support when application is down
Thanks to all the nice samaritans.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 02:28 AM
01-25-2006 02:28 AM
Re: Script Needed for Paging support when application is down
Assume that you want to look for a process called "myproc" and email/page if it isn't running:
# [ -z "`UNIX95= ps -C myproc -o pid= -o comm=`" ] && mailx -s "myproc" is not running!" root < /dev/null
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 02:32 AM
01-25-2006 02:32 AM
Re: Script Needed for Paging support when application is down
add a cronjob or direct monitoring to check for the job running.
Use a modem to alert your paging service.
Also this brings back quite a few results:
http://www4.itrc.hp.com/service/james/search.do?searchtext=Pager&searchcriteria=allwords&searchtype=SEARCH_FORUMS&rn=25&presort=rank&x=26&y=10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 02:34 AM
01-25-2006 02:34 AM
Re: Script Needed for Paging support when application is down
grep for something in a log file and/or echo $? for the application...
Something like this:
alertxebec="gwild@mydomain.com, applicationuser@mydomain.com:
#############################################################
#
# Mail Log file for the day to Support
#
#############################################################
grep failed $LOGFILE
FTPSTATUS=$?
if test "$FTPSTATUS" = 0
then
#we have a failure
mailx -s "XYZ JOB FTP FAILURE FOR $DATE" alertxebec < $LOGFILE
else
#we have success
mailx -s "XEBEC FTP LOG FILE FOR $DATE" gwild@mydomain.com< $LOGFILE
fi
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2006 12:48 AM
02-06-2006 12:48 AM
Re: Script Needed for Paging support when application is down
is this problem now solved.
Could you please award points and close.