FN-GM Posted January 22, 2008 Posted January 22, 2008 Take a look at the new addition to the WIKI http://www.edugeek.net/wiki/index.php/Check_the_status_of_your_servers Any questions post them here
zag Posted March 4, 2008 Posted March 4, 2008 Doesnt seem to work for me I get Line:2 Char: 38 Error: Expected Identifier Dim logon, fndconeN, fndctwo, fnexchange Dim filesys, objshell, servermessage, Set filesys = CreateObject("Scripting.FileSystemObject") Set objshell = CreateObject("WScript.Shell") fndconeN = "OFF" fndctwo = "OFF" fnexchange = "OFF" If filesys.FileExists ("\\itnm\c$\WINDOWS\win.ini") Then fndconeN = "ON" If filesys.FileExists ("\\rgbackup\c$\WINDOWS\win.ini") Then fndctwo = "ON" If filesys.FileExists ("\\rgmail2\c$\WINDOWS\win.ini") Then fnexchange = "ON" servermessage = "itnm = " & fndconeN & VBCR & "rgbackup = " & fndctwo & VBCR &"rgmail2 = " & fnexchange retval = objShell.Popup(servermessage, ,"Server Status",0 + 64 ) wscript.quit EDIT: Ok fixed it by removing the comma at the end of the second line, cool script
webman Posted March 4, 2008 Posted March 4, 2008 Does deleting the win.ini file shut the server down?
FN-GM Posted March 4, 2008 Author Posted March 4, 2008 yes, its very handy to just check your servers in seconds
DMcCoy Posted March 4, 2008 Posted March 4, 2008 or you could use uptime.exe uptime.exe \\daedalus \\daedalus has been up for: 179 day(s), 0 hour(s), 45 minute(s), 59 second(s) You can just run it as a batch if you want and pipe the text to a file. 179 days isn't bad for windows servers , even then the last power down was due an extended powercut. Means I have some patches to catch up with though!
OutToLunch Posted March 4, 2008 Posted March 4, 2008 I find PeerMonitor very handy for a basic but useful 'at a glance' view that my servers are all still up - also added to it IPs of access points around the school that regularly get turned off etc... http://www.danielclarke.com/peermonitor/ Kind of easier than running a script every time you want to check... 2
mattx Posted March 4, 2008 Posted March 4, 2008 Or the no ping script I did: http://www.edugeek.net/forums/showthread.php?t=15947&highlight=ping I'll do a quick web page on getting this at some point so you can get it working with Blat. Some may find this handy. I'll add it to the Admin Bar too at some point.
JamesC Posted March 4, 2008 Posted March 4, 2008 (edited) Or you could use Vista's 'Server Ping' side bar gadget: http://download.gallery.start.com/d.dll/1~2~110~10610/LARGE.jpg http://gallery.live.com/liveItemDetail.aspx?li=ca5fc597-58cf-4c73-864a-3bd021a2a570&bt=1&pl=1 Edited March 4, 2008 by JamesC
mattx Posted March 4, 2008 Posted March 4, 2008 Or you could use Vista's 'Server Ping' side bar gadget: http://download.gallery.start.com/d.dll/1~2~110~10610/LARGE.jpg http://gallery.live.com/liveItemDetail.aspx?li=ca5fc597-58cf-4c73-864a-3bd021a2a570&bt=1&pl=1 Thats a handy one - I'll install that. All these 'Ors' should be put in an array really.....
Geoff Posted March 4, 2008 Posted March 4, 2008 We have a nagios server here. http://www.nagios.org I use the firefox plugin for 'at a glance' info as to whats broken. https://addons.mozilla.org/en-US/firefox/addon/3607 Along with Email notifications.
Diello Posted March 4, 2008 Posted March 4, 2008 Spotlight for servers and Alert Ping for switches/APs
Joedetic Posted March 4, 2008 Posted March 4, 2008 Yeah there are already a number of ways to do this. I've used nagios in the past as it'll check individual services on the server too and then e-mail you if something dies. Good stuff. I've used poweradmin in the past too but that's for windows boxen.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now