Members

 

download house ejay


Name: download house ejay
Category: Soft
Published: lipertudy1985
Language: English

 


 


 

 

 

 

 

 

 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 

These providers are part of ASP.Net and defined at the machine level and inherited by default in all applications. The WmiWebEventProvider is a very cool feature because it allows sending events to any WMI event consumer. WMI events can be consumed from .Net code, from COM environments such as vbscript, and from PowerShell, so this provider can act as a bridge from ASP.Net to all of those other technologies.
Monitor the event stream with WMI via PowerShell.
PS IIS:\Sites\Default Web Site\bbappfx_firebird _firebird>
EventLogProvider – records events to the Windows Application Event Log SqlWebEventProvider – records events to a SQL Server database table WmiWebEventProvider – sends events to WMI for downstream processing by a WMI consumer.
In the script I captured the last event that was raised into a global variable named $lastevent, so I can explore the event contained in that variable interactively in PowerShell. The shell will prov >
If monitoring is enabled you will see “True” output to the console.
· Events can be configured to route to Event Log, Database, Email, WMI, or custom “provider”.
Request Completed: DataListGetMetaDataRequest.
First, I import the IIS module into my PowerShell session:
The IIS prov >drive:\path syntax to navigate to a specific web application, in this case my Infinity application, and then perform commands on that “current” location. In my case my Infinity instance is in a virtual directory named “bbappfx_firebird”, so I can Set-Location to that, or use the more familiar “cd” alias:
The rules section is the component of the configuration that actually routes events to providers. For example, the “All Errors Default” rule routes all errors to the event log provider. This is a built-in rule defined at the machine level and inherited by all web applications. This rule is the reason that ASP.Net errors get logged into the Windows Application Event Log.
eventMappings – used to define named sets of events providers – used to define event handlers rules – used to route specific eventMappings to specific providers.
The “All Events” mapping is a built-in mapping that is defined at the machine level and by default inherited by all web applications. This mapping covers all web health events because the type System.Web.Management.WebBaseEvent is the class from which all other events derive. We can use this built in event mapping to tap into every web health event raised by the application, including events raised by ASP.Net itself as well as Infinity specific events.
Using the PowerShell IIS Web Administration Module to modify web.config.
· ASP.Net by default routes certain events to event log.
Now that we have configured the application to route events to WMI we can use the standard WMI event subscription feature set to monitor events. PowerShell 2.0 supports hooking WMI events so we can stay in our PowerShell session and register a handler using the Register-WmiEvent cmdlet. The sequence of commands below will define a scriptblock to execute whenever a WMI event is received. The script block will output information about the event.
You can read more about the ASP.Net Health Monitoring feature here and here. In this post I will show you how you can tap into the Infinity server event stream using Windows PowerShell and Windows Management Instrumentation (WMI). Since PowerShell and WMI are built into Windows there is no need to install any kind of additional software on the web server to tap into the event stream. Everything you need comes with Windows and Infinity.
What error reporting facilities are available and what information do they provide? Can error information generate alerts , messages to syslog, SNMP traps, email , etc.? Describe your software’s ability to integrate with application monitoring products . Please describe how your system provides a activity/error message-tracking log .
Now that we have healthMonitoring enabled we need to configure the application to route certain types of events to a specific event handler. This is done by configuring 3 sub-sections in the /system.web/healthMonitoring section. The three sub-sections are:
$wmiEvent = $lastevent . SourceEventArgs . NewEvent.
name : All Events.
Login Failure/ Feature Access Denied (Inherits standard SecurityFail event)
Some of these events inherit standard events so that they inherit the default routing rules and mapping to performance counters:
· We raise custom events throughout the server code.
The Infinity Platform and the applications that are built on it have been instrumented using the standard ASP.Net WebHealth system. This system allows the application developer (Blackbaud) to efficiently surface diagnostic , security , auditing , and logging information about the inner workings of the application. An administrator then uses a built in configuration system to tap into this stream of information and route the particular events of interest to various consumers of the information. There is a fine level of control over the amount of data that is routed and the level of detail that is desired. Events can be routed to the any or all of the default event handlers (called “providers”) which include WMI, SMTP email, the Windows Event Log , and a SQL Server database. If those choices are not sufficient then custom providers can be implemented to handle events with no change to application code, and the WMI provider can serve as a gateway to other management tools that can consume WMI data such as Microsoft System Center Operations Manager. The SMTP email provider can be configured to send alerts based on event thresholds.
· ASP.Net itself fires several events.
Once I do that my PowerShell prompt will change to show that my current location is now in the IIS virtual directory that I will be configuring. In my case my prompt becomes:
In this example I am working on my Windows 7 Professional machine (which includes IIS 7.5 and PowerShell 2.0) , everything here applies equally to Windows Server 2008 R2 or later. I am using the PowerShell Integrated Scripting Environment (powershell_ise.exe)) but all of these commands will work from the powershell.exe command line as well. I will show how the IIS PowerShell Provider can be used to configure the health monitoring features to route events to WMI. I will also show how you can use PowerShell to monitor those WMI events that are generated by the application. Note that if you are using Windows User Account Control (UAC) then you need to run PowerShell elevated as an administrator.
Posted on: July 15, 2011.
The last section we need to explore is the rules section:
· Administrators have lots of control over number of thresholds for event firing to providers.
I frequently get questions about what kind of application monitoring features exist for an Infinity application like BBEC. I love getting this question because it gives me an opportunity to share information about a very strong feature of the Infinity Platform. There are monitoring and audit features in Infinity that go above and beyond the already extensive monitoring features of Windows Server Internet Information Services (IIS).
Infinity has a great set of features that were specifically designed around the terms in bold in the above set of questions. My stock answer to questions such as these is as follows:
this command will add the rule we need to send events to WMI. I check the rules section after issuing this command and verify that it is now in place:
Error/Warning/Info trace events.
The Blackbaud “SlowRequest” monitor can be configured per request type. If a request exceeds threshold then a “SlowRequest” event is raised. This can be routed like any other event. By default we are configured to route these to the event log.
The next section we can explore is the providers section:
The console will show a list of the current mapped events. An event mapping consists of a name and a type. The “name” of an event mapping provides a key that can be used to reference the event in the rules section, and the “type” refers to a .Net class that inherits from System.Web.Management.WebBaseEvent. On my system the command above shows that there are several event mappings defined , including this one:
Now that we have explored the 3 sections of the web.config that control event routing we can make changes to the configuration in order to tap into the event stream.
On my system I have 3 providers defined:
ServiceRequest type: DataListGetMetaDataRequest.
Login Success (Inherits standard SecuritySucess event)
Cache Add/Remove events.
The ASP.Net health monitoring system is configured via the web.config file in the root virtual directory of the Infinity web application. This file can be edited with a text editor such as notepad.exe or an Xml editor such as Visual Studio. However, it is best to avoid editing this file by hand because a simple syntax error in the web.config such as a missing closing tag will render the web application unavailable. So I am going to use the IIS PowerShell module which lets me issue commands to modify the web.config.
Top Categories.
· Standard ASP.Net Feature.

By: Paul Gibson.
Top Authors.
The next thing I want to do is check if health monitoring is enabled. By default it should be enabled, but we can use this command to verify:
Every web service method has a LIfeTimeStart/EndSuccess/EndFailure event.
In addition to the standard ASP.Net events, the Blackbaud application surfaces several application specific events.
which will produce the following output:
We can use PowerShell to explore these sections, starting with the eventMappings:
How we augment default ASP.Net events.
Here are some example questions that I have heard on this topic:
For the purposes of demonstration we can route the pre-defined “All Events” mapping to the pre-defined WmiWebEventProvider by adding a rule to the rules section that pairs up that event mapping to that provider. We need to give this rule a unique name, so I will use the name “Route all events to WMI”:
#check if health monitoring is enabled:
After executing these commands I logged into my Infinity application and clicked around a few times, visited a few pages, just doing some random navigation in the app. Flipping back to the PowerShell ISE I see a torrent of events flying by in the output window, for example:
The first thing I want to do in my PowerShell session is make a copy of the web.config. This is a good practice when changing configuration settings because it makes it easy to roll back in case a mistake is made.
If you see “False”, then you can enable monitoring with this command:
· We have an HTTP module that monitors request execution time.
· Some events map to Performance counter (Access Denied, Login/Logout, Error Events)
$enabled = Get-WebConfigurationProperty -Filter /system.web/healthMonitoring -Name enabled.
http://atstorgare.eklablog.com/81845gvm-rz-driver-download-0-9-a179...

Views: 1

Comments are closed for this blog post

© 2024   Created by PH the vintage.   Powered by

Badges  |  Report an Issue  |  Terms of Service