Results 1 to 8 of 8
Thread: reboot script/program
-
04-27-2003, 12:33 AM #1Junior Guru
- Join Date
- Dec 2002
- Posts
- 213
reboot script/program
Hope this is the correct place for this post.....
I was just wondering if anyone had found the perfect management script for monitoring a server.
I would like something that will automatically do a reboot if there is a problem for more than "x" number of either seconds or minutes. But just before it reboots sends a message to multiple admins via EITHER MSN, ICQ, email, phone, pager, etc.
-
04-27-2003, 08:52 AM #2Web Hosting Master
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,569
windows/linux?
-
04-27-2003, 08:53 AM #3Junior Guru
- Join Date
- Dec 2002
- Posts
- 213
It will need to be for Linux.
-
04-27-2003, 04:13 PM #4Web Hosting Master
- Join Date
- Sep 2002
- Location
- London/Edinburgh
- Posts
- 1,131
I was thinking about doing something like this, however instead of rebooting the box (it would not help if it had crashed) it would send an email to the datacentre (or whoever) asking them to try to connect to the server, run some tests, if that dont work. reboot the box.
█ Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
█ Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
█ 99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
█ Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895
-
04-27-2003, 04:18 PM #5Account Disabled
- Join Date
- Apr 2000
- Posts
- 1,726
why dont you just use cron
-
04-27-2003, 04:38 PM #6Web Hosting Master
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,569
yah
use cron, check memory usage etc, check load, check to see if any processes are dead or dying, maybe compare it against a list to see if things like httpd are running..
you could maybe have a script that checks the logs for certain events (you have been portscanned!!!!!!!) and tells you if they occur - maybe get it to check snort logs etc for certain attacks
-
04-29-2003, 10:25 AM #7Web Hosting Guru
- Join Date
- Aug 2002
- Location
- Toronto, Canada
- Posts
- 286
ummm, cron won't work if your server is locked up.
The ideal solution would be to have some other server check that your webserver & ftp is working (with cron), if it isn't, check again in 2 minutes. If it's still not up, have it email your provider once.
as well, you could check to see if it is only a network issue by pinging your server or the provider.
I think.... If a server is locked up, you can still ping it.www.prolinker.com - free automatic linking to your website
-
04-29-2003, 01:26 PM #8Web Hosting Master
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,569
yes but upto that point, you'll know what your machine was doing etc
eg you might see the memory usage tending towards 100%..