View Single Post
  #2 (permalink)  
Old 06-07-2005, 05:12 PM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
Posts: 586
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 8
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Sure one can write such script, but ulr http://netsaint.kirenet.com uses diffrent software and not scripting... here is what i do to find out uptime and what users are doing between multiple server

RH1-box1

RH2-box2

Suse-box3

Debian-mysystem


At Debian-mysystem i have script like
Code:
#!/bin/sh
BOX="IP1 IP2 IP3 IP4"
USR="jadmin"
for ip in $BOX
do
echo "Server Uptime and Load @ $ip"
 ssh $USR@$ip uptime 
 ssh $USR@$ip w
echo "-----------------------------------------------------------"
done
Note that I have ssh keys for user jadmin from my Debian-mysystem

This is just simple script you can modify it to send output to /var/www/mydomain.com/status dir in plain or html format
Reply With Quote