Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to be able to tell if a series of servers have anyone active on them, and if not then to automatically shut them down (turn off the VM). It's not a trivial task, because I have 1000+ server instances that include an assortment of OSes (Win, Unix, Linux) and many different type of configurations. This makes installing an uptime agent on the boxes non-trivial. Also, because the users are admins, I can't really ensure that tools I install will not be tampered with.

So my idea is to treat each server as a black box and use stats from outside of the server to decide if there's activity:

  • Monitor all servers for disk and CPU activity.
  • If disk writes and CPU activity fall to zero for 1 hr then assume system is idle and shut it down.

I don't care to turn off more machines than are truely idle, if I have something like 90% accuracy. Would the above black box work or be unreliable? What black box metrics would be more appropriate?

share|improve this question

migrated from stackoverflow.com Oct 23 '10 at 16:30

This question came from our site for professional and enthusiast programmers.

4  
This might be better asked at serverfault; and you seem to be using a VM: what VM? –  Eamon Nerbonne Oct 23 '10 at 14:43

1 Answer 1

Just tell people that if they mess with the scripts, you won't see writes or CPU activity, and it'll kill off the instance :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.