Hardware monitoring refers to monitoring the physical health of a computer, including monitoring such as CPU utilization, memory availability, disk space remaining, and so on.
In this section, we'll set up CPU-related hardware monitoring for a SharePoint farm
SharePoint monitoring ②: CPU load monitoring for hardware monitoring
Alert Thresholds:
Server |
DB1 |
DB2 |
APP1 |
APP2 |
SCH1 |
WFE1 |
WFE2 |
DB3 |
DC |
Cpu % Processor Time |
85% |
85% |
95% |
95% |
95% |
75% |
75% |
85% |
95% |
Depending on the role and service, the load on each server's CPU should vary. The CPU alarm thresholds can be set higher, considering that SharePoint's app servers are crawling, user syncing, and batch jobs. and WFE server if the load is high, will cause the web response delay and so on, so the alarm threshold setting is lowered accordingly.
1. Create an object group
For ease of management and setup, we first create a group of server objects
Go to Authoring Group, click Create New Group
650) this.width=650; "title=" clip_image002 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M02/6F/07/ Wkiom1wpyy6wc2fmaaezmkazwuq985.jpg "height=" 234 "/>
Define the group name, first we create DB group
650) this.width=650; "title=" clip_image004 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/M00/6F/04/ Wkiol1wpzplwmtj1aadgpbmblca473.jpg "height=" 451 "/>
Add a group member to make a search selection
650) this.width=650; "title=" clip_image006 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image006 "src=" http://s3.51cto.com/wyfs02/M01/6F/04/wKioL1WPzPbgKO4cAAHun-_ Nrio900.jpg "height="/>
You can create dynamic group members, where you skip
650) this.width=650; "title=" clip_image008 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/M00/6F/07/wKiom1WPyziypQppAAC3il_-R_4586. JPG "height="/>
Add subgroups, skip over here
650) this.width=650; "title=" clip_image010 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image010 "src=" http://s3.51cto.com/wyfs02/M02/6F/04/ Wkiol1wpzpqtn0riaac4ckel0w4737.jpg "height=" 449 "/>
Add a group member exclusion object, which also skips
650) this.width=650; "title=" clip_image012 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/M00/6F/04/ Wkiol1wpzp2j4sh1aadcnoi06tk657.jpg "height=" 452 "/>
Finally click Create.
In the same way, we create the SPS WFE Group and the SPS app group again
650) this.width=650; "title=" clip_image014 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image014 "src=" http://s3.51cto.com/wyfs02/M01/6F/04/ Wkiol1wpzqcjlb9gaafkm8ypbjg949.jpg "height=" 551 "/>
650) this.width=650; "title=" clip_image016 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image016 "src=" http://s3.51cto.com/wyfs02/M02/6F/04/wKioL1WPzQPTZo2_ Aafoti8wiyi264.jpg "height=" 547 "/>
Finally, you can create a new SPS farm group, and add the 3 groups you created earlier as subgroups.
650) this.width=650; "title=" clip_image018 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image018 "src=" Http://s3.51cto.com/wyfs02/M02/6F/07/wKiom1WPy0XA3eP2AABO-l_ Qwfa397.jpg "height=" 119 "/>
2. CPU Monitoring
Now set up CPU monitoring
Find authoring--monitor->windows Server R2 full Operating system-> performance->total CPU Utilization Percentage
650) this.width=650; "title=" clip_image020 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image020 "src=" http://s3.51cto.com/wyfs02/M00/6F/07/ Wkiom1wpy0fjxmqraaed5azaqi8361.jpg "height=" 199 "/>
Right-click the alternative monitor because I'm going to set the default value for all computers here.
So select the class for all R2 full Operating system objects, and if you want to specify exactly, you can also select the SPS app group that you created earlier
650) this.width=650; "title=" clip_image022 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image022 "src=" http://s3.51cto.com/wyfs02/M02/6F/07/ Wkiom1wpy0nqilyqaadnwnukog0334.jpg "height=" 147 "/>
Select the following items and specify a Management Pack, and you can see that the default total CPU utilization percentage threshold in scom is also 95%
650) this.width=650; "title=" clip_image024 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image024 "src=" http://s3.51cto.com/wyfs02/M00/6F/07/ Wkiom1wpy02jbrdlaaiikapwd0i181.jpg "height=" 579 "/>
Now set the DB CPU threshold, where the selection takes effect for the group
650) this.width=650; "title=" clip_image026 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image026 "src=" http://s3.51cto.com/wyfs02/M01/6F/07/ Wkiom1wpy1cs9crgaadtsoeztcu637.jpg "height=" 145 "/>
Select DB Group
650) this.width=650; "title=" clip_image028 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image028 "src=" http://s3.51cto.com/wyfs02/M01/6F/04/ Wkiol1wpzrlqswx0aah--4tatyg458.jpg "height=" 519 "/>
The threshold value is changed to 85%
650) this.width=650; "title=" clip_image030 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image030 "src=" http://s3.51cto.com/wyfs02/M00/6F/04/wKioL1WPzRWDZCzHAAG_ Wv-3ayy202.jpg "height=" 530 "/>
Similarly, changing the CPU threshold of the SPS WFE Group is 75%
650) this.width=650; "title=" clip_image032 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image032 "src=" http://s3.51cto.com/wyfs02/M01/6F/08/ Wkiom1wpy1ng4hjpaahkqmg5tgc139.jpg "height=" 532 "/>
Finally open the alternative summary, you can confirm the settings just
650) this.width=650; "title=" clip_image034 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image034 "src=" http://s3.51cto.com/wyfs02/M01/6F/08/ Wkiom1wpy1vba6ziaaenjmymg8m286.jpg "height=" 322 "/>
3. Test alarms
Since it is the CPU load threshold alarm, the test will need to increase the CPU load.
There are many ways to increase the CPU load, such as using Visual Studio's stress tests to simulate a real load and increase the CPU load, as described in the SharePoint Stress test chapter.
It's easier to make changes with some CPU load widgets,
Enter WFE2, where you can use Mfccpustresser to make simple adjustments.
650) this.width=650; "title=" clip_image036 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image036 "src=" http://s3.51cto.com/wyfs02/M02/6F/04/ Wkiol1wpzr2d-hkeaab4cq2nw9c775.jpg "height=" "/>"
Note that the CPU load here is not a threshold of more than 75% alerts, but also the CPU queue length, sampling time, number of samples and other related,
If the test does not require strict match parameters, the following temporary settings can be made for the test computer to save waiting time:
650) this.width=650; "title=" clip_image038 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image038 "src=" http://s3.51cto.com/wyfs02/M00/6F/04/wKioL1WPzSDC_6hpAAH_ Vkd7oxu396.jpg "height=" 551 "/>
You will soon receive an email notification that the CPU exceeds the threshold value
650) this.width=650; "title=" clip_image040 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image040 "src=" http://s3.51cto.com/wyfs02/M01/6F/04/ Wkiol1wpzskzhe-taadeqskz2z4986.jpg "height=" 156 "/>
Automatic lifting of alarms when load is removed
650) this.width=650; "title=" clip_image042 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image042 "src=" http://s3.51cto.com/wyfs02/M02/6F/04/wKioL1WPzSTSispOAAE_ Lszjihs261.jpg "height=" 202 "/>
Note: You can confirm the processor queue length with the following command
Get-wmiobject Win32_perfrawdata_perfos_system | Select Processorqueuelength
650) this.width=650; "title=" clip_image044 "style=" Border-top:0px;border-right:0px;border-bottom:0px;border-left : 0px; "border=" 0 "alt=" clip_image044 "src=" http://s3.51cto.com/wyfs02/M00/6F/04/ Wkiol1wpzsbcu-zraabibprxz7i051.jpg "height="/>
This article is from the "Iron Fist of the Invincible Speaker" blog, please be sure to keep this source http://yaojiwei.blog.51cto.com/762134/1668769
System Center R2 Instance 3-Deploying scom monitoring SHAREPOINT8-CPU monitoring