Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Server monitor script


MikeMike

Recommended Posts

Posted

Can anyone recommend a script that will keep track of my Unix servers down time, cpu load etc... and send a message to my cell phone and email me whenever it goes down or up again?

 

Regards

Mike

Posted

your host should be able to tell you where/what needs to be installed.

Posted

You'll need another server to do that - unless you are able to execute a script from your dead server ;)

 

Quick 'n dirty but pretty failproof (on your own server)

 

1) alter the login scripts so whenever someone logs into SSH you get an e-mail with his credentials and time of login

2) same for shutdown script - this gets executed just before shutdown - so have it e-mail you

3) run a cron every morning that checks status of deamons and e-mails the results. If you do NOT get your e-mail something is seriously wrong, if you do get it you should actually READ IT :)

 

Regards

Matthijs

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...