Getting *nix Server uptime..  
Author Message
MichaelEaton





PostPosted: Visual C# General, Getting *nix Server uptime.. Top

Lets hope i can explain this...

I have to monitor 15+ servers daily, all running *nix based OSes.. I wanted an easy way to monitor their load and swap usage, (which can be watched via the 'top' command).

I was going to create a windows forms application that connected to each server and ran the uptime/top command constantly and had labels for each server on the main form that would hold each servers result, using SharpSSH client library but this didnt work out so good.. (cross thread problems/resource intensive)..

I was wondering if anyone could offer any advice on another way this could be done I dont/cant run any sort of deamon on each server, nor can i use SNMP as that provides its own problems, if anyone can offer any advice this would be greatly appreciated.

Thanks!

Michael



Visual C#6  
 
 
MarcD





PostPosted: Visual C# General, Getting *nix Server uptime.. Top

you could hack your own pretend web service by throwing together a perl or php script that was public facing that parsed this information and exposed it via a web page. You could also do a perl daemeon also probably that did the same thing.
 
 
MichaelEaton





PostPosted: Visual C# General, Getting *nix Server uptime.. Top

As i already said in my post, it wouldnt be pratical to run any sort of deamon on each server..
 
 
MarcD





PostPosted: Visual C# General, Getting *nix Server uptime.. Top

Well computers do not communicate to each other magically. Something has to be there that a) allows for this communication and b) exposes the necessary data you are looking for.