Operating System - HP-UX
1846875 Members
3681 Online
110256 Solutions
New Discussion

Re: monitoring netsacpe web server

 
Roberto Gallis
Regular Advisor

monitoring netsacpe web server

HI,
I need to build a script which monitor running of netscape https server.
If some process go down I need to restart the server.
Process running are
./uxwdog -d /usr/netscape/suitespot/https-dcsv02/config
/usr/netscape/suitespot/bin/https/ns-httpd.qos -d /usr/netsc

often there are other process for netscape administration.
How can I build this script?
3 REPLIES 3
Maureen Gunkel
Trusted Contributor

Re: monitoring netsacpe web server

Roberto,
Do you want to have the script restart the web server, or just notify you that it's down? You could script a 'wrap-around' that starts the two processes in your message, and writes the PID for each to a temp file. Then, you could do a ps -p 'PID,PID' and if it doesn't find them, restart the web server/or notify you.
Hope this helps,
Mo
No matter where you go, there you are.
nnf97
Regular Advisor

Re: monitoring netsacpe web server

If you have a number of web servers running on a single box, you could possibly have a script in the cron which ran say, every five minutes which wouldgrep for the and 'httpd' in the ps -ef output. And if it didnt find the specific process would restart it.

Also, the other way is to have the script parse the watchdog log and start the webserver if any is down.

Hope this helps.

Nabeel
Live Free or Die (New Hampshire)
Jitendra_1
Trusted Contributor

Re: monitoring netsacpe web server

If you want the netscape server process to be up all the time , you may want to put it in /etc/inittab with respawn bit set.

hth
Learning is the Key!