PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > Re: Alerts for Performance Counters
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Alerts for Performance Counters

Réponse
 
LinkBack Outils de la discussion
Vieux 14/11/2007, 19h59   #1
Joseph T Corey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Alerts for Performance Counters

The WMI classes for Performance Monitor alerting is pretty slim. To my
knowledge, the Sysmon class (which is under root\WMI) is limited to one
method and does not include a means to create new alerts.

However, this can be done using the logman command. You could do something
like this if you wanted to alert when the available memory is below 50MB:

logman.exe create alert new_alert -th "\Memory\Available MBytes<50"

There is much more info at
http://technet2.microsoft.com/window....mspx?mfr=true.

If you need to wrap in VBScript for some reason, just use the Run method of
Wscript.Shell.

Hope this s!

--
Joseph T. Corey MCSE, Security+
Systems Administrator
jcorey@cmu.edu



"Tomm" <Tomm@discussions.microsoft.com> wrote in message
news:59AD73E2-AF91-45BB-A515-778EF49C431C@microsoft.com...
>I have been searching every where to find some sample code (vbscript,
>VB.NET,
> c#, VB) to create alerts in "Performance Logs and Alerts". Does anyone
> have
> any sample code to get me started?


  Réponse avec citation
Vieux 14/11/2007, 21h00   #2
Tomm
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Alerts for Performance Counters

Joseph
It looks like anything less then Windows 2008 does not have the ability to
add alerts...bummer but I'm glad to hear that they addressed that issue. I
think I found a way to create one by creating some registry keys. I'm still
testing it on my Virtual Machine. I'll post it when I completely tested it.
Maybe I can create a program to versions less then Windows 2008.

Thanks so much for your .

"Joseph T Corey" wrote:

> The WMI classes for Performance Monitor alerting is pretty slim. To my
> knowledge, the Sysmon class (which is under root\WMI) is limited to one
> method and does not include a means to create new alerts.
>
> However, this can be done using the logman command. You could do something
> like this if you wanted to alert when the available memory is below 50MB:
>
> logman.exe create alert new_alert -th "\Memory\Available MBytes<50"
>
> There is much more info at
> http://technet2.microsoft.com/window....mspx?mfr=true.
>
> If you need to wrap in VBScript for some reason, just use the Run method of
> Wscript.Shell.
>
> Hope this s!
>
> --
> Joseph T. Corey MCSE, Security+
> Systems Administrator
> jcorey@cmu.edu
>
>
>
> "Tomm" <Tomm@discussions.microsoft.com> wrote in message
> news:59AD73E2-AF91-45BB-A515-778EF49C431C@microsoft.com...
> >I have been searching every where to find some sample code (vbscript,
> >VB.NET,
> > c#, VB) to create alerts in "Performance Logs and Alerts". Does anyone
> > have
> > any sample code to get me started?

>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h17.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08724 seconds with 10 queries