|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Shell Script for Server Health?
I'm wondering if any simple shell scripts exist that check unix server basic health signs, and e-mail the results.
Disk space, CPU, etc? Thanks TL |
|
#2
|
||||
|
||||
|
there are stacks of tools to do this sort of stuff. A very simple script might look like this:
Code:
#!/bin/bash echo "memory status:" > status echo "---------------" >> status vmstat >> status echo "" >> status echo "uptime & load: " >> status echo "--------------" >> status uptime >> status echo "" >> status echo "disk usage: " >> status echo "----------" >> status df >> status google for crontab and mail to send once a day.. christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Shell Script for Server Health? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|