server monitor script...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting server monitor script...
# 1  
Old 05-31-2008
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
# 2  
Old 06-01-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

How to Monitor Tomcat App Server?

Tomcat stops logging intermittently for brief intervals of time like for 5 or 6 secs I wish to monitor if my Tomcat process gets stuck, hung or even shutdown or remains healthy at the time i see the problem of no logging. Can you please let me know how can i monitor Tomcat Application... (10 Replies)
Discussion started by: mohtashims
10 Replies

2. Solaris

How can i monitor solaris server by using any monitoring tools

Hi forum We have nearly 240 servers inclding zones . How can i monitor server and its performance by using any monitoring tools. My indentions is to plot graphs based on server utilization interms of cpu and memory Is there any opensource tools for this. I saw collectd and it has agent... (3 Replies)
Discussion started by: bentech4u
3 Replies

3. Shell Programming and Scripting

need help with little bash server monitor script

hello, i`m new in bash scripting and i getting an error with my little server monitoring script example of my script: #!/bin/sh s1_ats=0 while ; do sleep 5 s1=`ping -c 1 xxxx.xxxx.xxxx.xxxx | grep 64 | awk '{print $1}'` if ; then $s1_ats=0 else if ; then (2 Replies)
Discussion started by: grauzikas
2 Replies

4. Infrastructure Monitoring

How to monitor server dual power?

dears, any one knows how to use linux command to monitor hp server Redhat dual power status? any 1 of power failure then alarm will triggered. (4 Replies)
Discussion started by: maxlee24
4 Replies

5. Solaris

Monitor server's health

Dear all, There wasn't any monitoring on our server except on the filesystem. Therefore, I was wondering anything i should do on a daily basis to check on the server's status, health, hardware, or any other thing as a disaster prevention? Also, what command i should use to do that? ... (2 Replies)
Discussion started by: beginningDBA
2 Replies

6. Shell Programming and Scripting

Script to monitor JBoss web server

Hello All, I need a shell script to monitor JBOSS web server.If the JBOSS web server is down, then the script should send a mail. Please help on this. Regards, Sachin (2 Replies)
Discussion started by: nsachin
2 Replies

7. UNIX for Dummies Questions & Answers

How to monitor Unix server CPU status?

I like to know how to monitor the UNIX CPU/memory status over time. I need to data to do some graphical representation of the server load. I sort of need to keep track of the vmstat but i dont know how. I hope someone would kindly help me out. thanks. (1 Reply)
Discussion started by: shingpui
1 Replies

8. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

9. UNIX for Dummies Questions & Answers

Best development language to monitor the unix server

Hi, I am supposed to create the website to perform some monitoring and management activities on unix server. Activities includes cpu usage,displays currently runing processes,deleting files on the server and so on. Please tell which is best web based language(.net or java) to develop... (6 Replies)
Discussion started by: S_venkatesh
6 Replies

10. UNIX Desktop Questions & Answers

X-server and UNIX: monitor refresh rate

Hello. I'm running OpenBSD3.5 with GNOME2.4. The problem is that the monitors flickers. I'd like to know how to increase the vertical refresh rate. thanks in advance. (0 Replies)
Discussion started by: sablot
0 Replies
Login or Register to Ask a Question