Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: what is the best method of drawing for my situation Pin
Hamed Metalgear21-Sep-11 10:08
Hamed Metalgear21-Sep-11 10:08 
GeneralRe: what is the best method of drawing for my situation Pin
SledgeHammer0121-Sep-11 11:45
SledgeHammer0121-Sep-11 11:45 
GeneralRe: what is the best method of drawing for my situation Pin
Hamed Metalgear21-Sep-11 20:44
Hamed Metalgear21-Sep-11 20:44 
QuestionForm Application run into troubles on Vista. DEP Disabled [modified] Pin
shabi.b20-Sep-11 7:18
shabi.b20-Sep-11 7:18 
AnswerRe: Form Application run into troubles on Vista. DEP Disabled Pin
#realJSOP21-Sep-11 2:06
professional#realJSOP21-Sep-11 2:06 
GeneralRe: Form Application run into troubles on Vista. DEP Disabled Pin
shabi.b21-Sep-11 2:25
shabi.b21-Sep-11 2:25 
AnswerRe: Form Application run into troubles on Vista. DEP Disabled Pin
Bernhard Hiller21-Sep-11 3:53
Bernhard Hiller21-Sep-11 3:53 
QuestionAdvice or Assistance with remote performance monitoring Pin
CCodeNewbie20-Sep-11 5:04
CCodeNewbie20-Sep-11 5:04 
Greetings gurus,

I would appreciate your input on whether this idea is even workable before getting to complicated.

The goal:-
Retrieve performance data from remote PC A on Domain A into a SQL database on PC B on Domain B via a running service on PC A.

The method:-
Create a program in C# or C++ which retrieves CPU usage, Available RAM, disk usage and uploads the metrics to a SQL database. This program will run on a target PC as a service/agent.

Note:-
I have already created something similar in vba which runs under MS Access in the LAN but I would like to extend this concept.
I have tried getting Windows Performance Monitor (perfmon) to upload to a remote SQL db but have found that perfmon can't pass on the SQL login (i.e. the connection tests ok but writing to the table fails)

So:-

I have found this Simple Windows Service Sample[^] and used it to create a service. Could someone please point me in the right direction where I can learn (by example) how to read the above metrics?

I have tried to understand some examples of reading hkey_performance_data without getting the code right and I would prefer not to use WMI queries as they seem to slow the host machine down while querying the WMI base.

Any suggestions please.

Many thanks.
AnswerRe: Advice or Assistance with remote performance monitoring Pin
PIEBALDconsult20-Sep-11 5:21
mvePIEBALDconsult20-Sep-11 5:21 
GeneralRe: Advice or Assistance with remote performance monitoring Pin
CCodeNewbie20-Sep-11 5:47
CCodeNewbie20-Sep-11 5:47 
GeneralRe: Advice or Assistance with remote performance monitoring Pin
PIEBALDconsult20-Sep-11 14:39
mvePIEBALDconsult20-Sep-11 14:39 
QuestionRetreiving Exe Version information from Program Files Pin
get120620-Sep-11 3:47
get120620-Sep-11 3:47 
AnswerRe: Retreiving Exe Version information from Program Files Pin
Luc Pattyn20-Sep-11 4:10
sitebuilderLuc Pattyn20-Sep-11 4:10 
AnswerRe: Retreiving Exe Version information from Program Files Pin
Pete O'Hanlon20-Sep-11 4:38
mvePete O'Hanlon20-Sep-11 4:38 
AnswerRe: Retreiving Exe Version information from Program Files Pin
Bernhard Hiller21-Sep-11 3:58
Bernhard Hiller21-Sep-11 3:58 
QuestionDataSet & WinForms: Inserting data into a many-to-many table. Pin
cjb11020-Sep-11 2:52
cjb11020-Sep-11 2:52 
QuestionDb connection Exception Pin
anishkannan20-Sep-11 0:52
anishkannan20-Sep-11 0:52 
AnswerRe: Db connection Exception Pin
Ravi Sant20-Sep-11 4:52
Ravi Sant20-Sep-11 4:52 
QuestionInstalling additional classes [solved] Pin
DanielCrk19-Sep-11 7:12
DanielCrk19-Sep-11 7:12 
AnswerRe: Installing additional classes Pin
DanielCrk19-Sep-11 7:18
DanielCrk19-Sep-11 7:18 
AnswerRe: Installing additional classes Pin
Eddy Vluggen19-Sep-11 8:50
professionalEddy Vluggen19-Sep-11 8:50 
GeneralRe: Installing additional classes Pin
DanielCrk19-Sep-11 9:07
DanielCrk19-Sep-11 9:07 
GeneralRe: Installing additional classes Pin
Eddy Vluggen19-Sep-11 10:23
professionalEddy Vluggen19-Sep-11 10:23 
AnswerRe: Installing additional classes Pin
jschell19-Sep-11 8:10
jschell19-Sep-11 8:10 
GeneralRe: Installing additional classes Pin
DanielCrk19-Sep-11 9:08
DanielCrk19-Sep-11 9:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.