C#: performance Alerts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    C#: performance Alerts

    C#: programatically i wanna do
    In Admin tools: PErformance-> Performance Logs and Alerts
    i want to create "Alerts"

    New Log settings...
    Basically for printer (for testing if a printer prints more than 10 pages in one time, processor usage exceeds 50% )...
    i want logs to be created in Windows logs... Event viewer... I guess they do get created automatically.. ..

    now next thing is if i can do the above programatically ... how do i filters the logs ... so that i know which once i created?....
    Last edited by kenobewan; Feb 17 '08, 11:27 AM. Reason: MERGED POSTS
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    C#:

    i want to monitor system for processor usage,memory usage, disk space etc.. and if it exceedds certain limit (processor usage >80) . write to event log... AS far as i know this is done using performance alerts... Can i do this programmaticall y?

    Comment

    • PRR
      Recognized Expert Contributor
      • Dec 2007
      • 750

      #3
      C#: monitoring a system

      How can i continuously monitor a system... for example processor usage have a threshold say 80%, if it exceeds create a event log for the same...Similarl y for other things like memory etc...
      I have gone through performance alerts.... that is exactly wat i want... though i have not been able to do it using C#...

      Comment

      Working...