The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
use prtg to monitor sun server CPU csross UNIX Desktop for Dummies Questions & Answers 2 07-04-2007 01:06 PM
load monitor script locabuilt UNIX for Advanced & Expert Users 7 01-19-2007 10:37 AM
Hep with script to monitor directory cmf00186 UNIX for Dummies Questions & Answers 2 10-25-2006 11:42 AM
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 11 07-12-2005 12:49 AM
X-server and UNIX: monitor refresh rate sablot UNIX Desktop for Dummies Questions & Answers 0 09-11-2004 12:17 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-31-2008
Registered User
 

Join Date: Feb 2007
Location: india,mumbai
Posts: 73
Stumble this Post!
server monitor script...

hi all

i have a script which will write a log file depending upon output of TOP command ( i am on HP-UX ) and some rules to analyze processes if process falls under that rule then log entry in file. i am ready with this part i have perl script which does this for me but i have 3 HP servers and i have to run script on all of them & to monitor i have to go on each server and open log file i dont want this can i create a log file on any one server and write logs to this one file only so that i dont have to go on each server.
then by looking at this file i can send messages to user ( mail ) or take some other action.

thanx
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-01-2008
Registered User
 

Join Date: Jul 2005
Location: Oak Park, IL
Posts: 98
Stumble this Post!
Sure- NFS export a log directory from one of your servers (the master). Export it r/w to the other servers. On the other servers, NFS mount the directory. Write the data into a file in the imported directory, like normal.

On the master, log in and enjoy.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0