Click here to Skip to main content
14,977,142 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to monitor srever performance from client in socket programming

example // mointor free space of hard disk
mointor cpu
mointor memory
Posted
Comments
Sergey Alexandrovich Kryukov 13-Mar-12 19:05pm
   
This is re-post. Please don't do it. You are supposed to edit the question on the page where you initially asked it. Please see the answers to your past question.
--SA

That information isn't going to be readily available over sockets...your client can't just access this information. You'd need some sort of server side component to gather the diagnostics and send them on.


Have a look at xymon [^], which is exactly this.

You install a service on the target server. It gathers all the data and attempts to send it on to another server, a 'monitoring server' if you like, where all the data can be displayed,

We actually use this in our business for our machines, very useful to quickly display all your server stats on a single web page. :)


Or, you could write some sort service that your client connects to and allows you to run the query on the remote machine..either way, you're going to need a piece of software on the server.
   
Comments
saif khalid 13-Mar-12 16:03pm
   
Required me to create a program that monitors the performance of the server By C # language .. Are there similar programs??
Sergey Alexandrovich Kryukov 13-Mar-12 19:21pm
   
Why? If you require to create a program, please create it. I gave you enough instructions in my recent answers, summarized in my answer of this page, please see.
--SA
Sergey Alexandrovich Kryukov 13-Mar-12 19:09pm
   
I basically agree, but it also need explanation on how to monitor all three aspects of the service OP is interested in. (I voted 4.)
By the way, this is re-post. Please see my answers to the previous question:
http://www.codeproject.com/Questions/345989/Please-help-me-program-to-monitor-server-in-Csharp
--SA
Sergey Alexandrovich Kryukov 13-Mar-12 19:20pm
   
I also added more detail on Mono (we don't know on what OS the service should run, I explained it), Windows Service and networking. Please see my answer.
--SA
I basically agree with Dylan. Please see my comment to his question.

On the monitoring service, I answered on how to monitor the parameters you are interested in my answers to your question here:
Please help me program to monitor server in C#[^].

As to the monitoring on the network, you need to have the service on the host you want to monitor. If you need to develop such service, you should have .NET on Windows or Mono on other OS installed on the service host. You did not specify OS you want to monitor exactly, your tag "C#" does not assume Windows, as you did not specify on what host do you want to develop C# software.

So, about Mono, please see:
http://en.wikipedia.org/wiki/Mono_%28software%29[^],
http://www.mono-project.com/Main_Page[^].

If you create your service on Windows, the most adequate form of it would Windows Service. Please see:
http://en.wikipedia.org/wiki/Windows_Service[^],
http://msdn.microsoft.com/en-us/library/ms685141.aspx[^].

For development of Windows Services using .NET, please start here:
http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.100%29.aspx[^].

Development of Windows Services is more difficult than "regular" applications.

See also:
http://msdn.microsoft.com/en-us/library/aa984342%28v=vs.71%29.aspx[^].

Now, what about networking? You can use networking on any of the several different levels. I overview them in my past answers:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

—SA
   
Comments
saif khalid 14-Mar-12 7:59am
   
http://www.codeproject.com/Questions/346525/I-need-ideas-to-monitoring-performance-of-the-serv
Sergey Alexandrovich Kryukov 14-Mar-12 12:11pm
   
What makes you thinking I did not answer yet? I explain nearly everything.
Ask follow-up questions.
And please do not re-post -- it cannot help you.
--SA
saif khalid 14-Mar-12 16:45pm
   
Thanx
Sergey Alexandrovich Kryukov 14-Mar-12 19:17pm
   
My pleasure,
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900