- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- catching process death
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
Discussions
Discussions
Forums
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
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
тАО03-29-2007 11:25 PM
тАО03-29-2007 11:25 PM
catching process death
I would like to ask you if you konw a development technique or if the hpux11.23 SO has some way to cath a process, not controlled death.
What i want is to develop a process than knows inmediatly when some others has dead.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 11:45 PM
тАО03-29-2007 11:45 PM
Re: catching process death
Pl. elaborate what exactly u want to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 11:51 PM
тАО03-29-2007 11:51 PM
Re: catching process death
Ok, what i want is to develop a process to control others, to start them if they die.
I├В┬┤ve got now one that does it sending a signal every 5 seconds and i want to improve it, so they intercomunicate or some other way within SO, so the controlling process knows when the other die, just in the moment it takes place.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 12:59 AM
тАО03-30-2007 12:59 AM
Re: catching process death
I am developing a new tool - sentinel - which does exactly that. It is available for beta users with WDB 5.6 available for free download from the web at http://www.hp.com/go/wdb. The tool is not yet supported by HP since we first want to validate its need.
Please take a look at it. The specific usage that you want to try is
$> /opt/sentinel/bin/sentinel -silent -exit mail
You'd have to specifiy SENTINEL_MAIL env variable to the appropriate email address (it defaults to root@localhost).
Instead of using the 'mail' action for the 'exit' event, you can also specify some other command using the '-cmd
$> /opt/sentinel/bin/sentinel -silent -exit -cmd test.sh
Sentinel either spawns a process if you specify the command with arguments, or it takes a pid.
Other events of interest to you would be 'errexit' (non-zero exit code) or 'abort' (uncaught signal).
For more events and actions, do
$> /opt/sentinel/bin/sentinel -help
or look at the man page after adding /opt/sentinel/docs/man/man1 to MANPATH env variable.
Please inform me if it works ok for your case by sending an email to Veeru at hp dot com.
Cheers!
Veeru
- Tags:
- sentinel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 01:25 AM
тАО03-30-2007 01:25 AM
Re: catching process death
Sounds promising.
But there are numerous ways of monitoring processes.
For your situation probably overkill, but I for instance have many vital processes monitored by my Nagios server.
There comes a handy Nagios plug-in called check_procs with quite a few options.
If you define a Nagios event_handler and write a wee wrapper script you can even have crashed procs be restarted through the event handler by Nagios unattendedly, but getting notice of it however.
Albeit, one should always determine the cause for a crashed process rather than having it simply restarted automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 01:59 AM
тАО03-30-2007 01:59 AM
Re: catching process death
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 02:12 AM
тАО03-30-2007 02:12 AM
Re: catching process death
But what if the monitor or agent is a completely unrelated process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 02:26 AM
тАО03-30-2007 02:26 AM
Re: catching process death
- Tags:
- inittab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 01:17 PM
тАО03-30-2007 01:17 PM
Re: catching process death
You can have a program do the extract command to watch for the data on that process.
Another option would be to configure glance with the advisor mode to print out the process list and look for a state of died for that process name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 01:42 PM
тАО03-30-2007 01:42 PM