- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to monitor some daemons/programs and automatic...
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
04-11-2005 03:05 AM
04-11-2005 03:05 AM
how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
i have installed a product (NNM) on my HP-UX machine. Is there any way my HP-UX to monitor some daemons - nnm daemons an start them over if some of them get down ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 03:08 AM
04-11-2005 03:08 AM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 04:10 AM
04-11-2005 04:10 AM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
Though Anil's way should work...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 06:53 AM
04-11-2005 06:53 AM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
Not complicated at all.
About ServiceGuard, I'll say it's a bit expensive solution for a such small problem :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 02:57 PM
04-11-2005 02:57 PM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 06:35 PM
04-11-2005 06:35 PM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
I think, this is not such a bad idea !
Now my question is how to determine which patches/updates do i need ?? they are hundrets !
I need some sort of "service guard", because there are some additional thinks i need to be always UP and running (vncserver for example), what happens if I'm not at the office and something goes wrong ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 06:37 PM
04-11-2005 06:37 PM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
sounds intresting, but i can't do ANY programing/scripting, if you can help me a bit ??
or at least give me some links to reed about it ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 06:53 PM
04-11-2005 06:53 PM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
conf file (example):
test.prog:5:/usr/bin/test.prog
script (in crontab, runs let's say every 5 minutes):
cat conf.file | while read line
do
grep_line=`echo $line | awk -F : '{print $1}'`
num=`echo $line | awk -F : '{print $2}'`
command_line=`echo $line | awk -F : '{print $3}'`
num_procs=`ps -ef | grep test.prog | grep -v grep | wc -l`
if [ $num_procs -lt $num ]
then
# exeute the program with command_line
# may be send an email to someone that the process is down
fi
Well, it's just a skeleton, that gives the general idea of the script. I checks every line and gets the info it need to check the process and how to execute it if the number of instances is less than it should be.
There are ofcourse more scripting to do, may be send an email, of more complex checks, bt this is the direction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 06:56 PM
04-11-2005 06:56 PM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 07:56 PM
04-11-2005 07:56 PM
Re: how to monitor some daemons/programs and automaticaly make them up if they go down for some reason
sounds a little complicated... i'll desipher it ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 01:11 AM
04-12-2005 01:11 AM