Hi,
Basically we have a number of servers here running HP-UX, RedHat 2, 3, and 4... and I want to get some basic scripts running on them to perform some basic System Admin tasks. I was thinking that I would crontab the scripts and get them to email the results daily. Is this a reasonable idea?
The kind of .sh scripts I was thinking about are...
* show the available disk space on the server (using bdf or df -k), and send an email if the disk space is more than say 90% full on any drive.
* show which users have been logging into the servers... usernames they used, time/date, their IP's, etc.
* tail the syslog etc and send any errors.
I know this is not a very specific list, but i figured that some of you would have some ready made scripts that we can adapt etc.
I am interested in ANY scripts that you find useful for your sysadmin tasks in unix/linux.
Plus any sites that you know of that has such scripts would be great?
Thanks.
Basically we have a number of servers here running HP-UX, RedHat 2, 3, and 4... and I want to get some basic scripts running on them to perform some basic System Admin tasks. I was thinking that I would crontab the scripts and get them to email the results daily. Is this a reasonable idea?
The kind of .sh scripts I was thinking about are...
* show the available disk space on the server (using bdf or df -k), and send an email if the disk space is more than say 90% full on any drive.
* show which users have been logging into the servers... usernames they used, time/date, their IP's, etc.
* tail the syslog etc and send any errors.
I know this is not a very specific list, but i figured that some of you would have some ready made scripts that we can adapt etc.
I am interested in ANY scripts that you find useful for your sysadmin tasks in unix/linux.
Plus any sites that you know of that has such scripts would be great?
Thanks.