Objective
Citrix added IT infrastructure monitoring through SNMP in XenMobile Server 10.8. For details, seeSNMP monitoring.
You can use various monitoring applications that support SNMP monitoring. This section discusses how to use SCOM for monitoring your XenMobile Server nodes. SCOM is a part of the Microsoft System Center suite of systems management products. For more information about the Microsoft System Center and SCOM, refer Microsoft documentation.
Instructions
To configure SCOM to monitor XenMobile Server nodes and receive traps
Important: There are various approaches to monitoring in SCOM. Consult a SCOM expert for specific configuration steps. The steps in this article are only examples.
Enable SNMP monitoring in the XenMobile console.
Discover XenMobile Server nodes.
打开SCOM Operations Console and go to Administration. Right-click Network Management and then open Discovery Wizard.
To discover XenMobile Server nodes, select Network devices.
Because XenMobile Server supports only SNMP V3, select/add SNMP V3 Run As Account. Access mode can be either SNMP or ICMP and SNMP.
To create Run As Account for SNMP v3 devices, the user should be the same user you added in the XenMobile console in the SNMP settings. Ensure that you add the correct password and protocols.
This wizard creates a Discovery Rule to discover XenMobile Server nodes. After the rule is created, do one of the following:
Either allow the discovery rule to be run after the wizard is closed.
Run the rule manually.
To run the discovery rule manually, go to Network Management > Discovery Rules. Select the Rule and then click Run from Tasks pane.
To confirm the XenMobile Server nodes are successfully discovered, go to Network Management > Network Devices. If the discovery is successful, the XenMobile Server nodes appear. Check the Properties of each XenMobile Server. The Certification field should be CERTIFIED.
To create a Management Pack
打开SCOM Operations Console and go to Administration. Right-click Management Packs and then click Create Management Pack. Type the appropriate values and then click Create to create a Management Pack.
To create a group for XenMobile Servers
打开SCOM Operations Console and go to Authoring. Right-click Groups and then select Create a new group.
Grouping can be done based on Location (XenMobile). There could be other approaches to Grouping.
To Create the State View
打开SCOM Operations Console and go to Monitoring. Create a folder. Right-click the folder and then select New > State View. Select the Target as Node.
Select the group created in the previous step. This will only show the XenMobile Server nodes.
To Create the Diagram View
打开SCOM Operations Console and go to Monitoring. Create a folder. Right-click the folder and select New > Diagram View. Select the Target as the group created earlier. This will only show XenMobile Server nodes.
To create a rule to receive all traps as events
打开SCOM Operations Console and go to Authoring. Right-click Rules and then select Create a new rule. Follow the wizard to complete Rule creation.
Click Collection Rules > Event Based > SNMP Trap (Event).
Enter Rule Name and Description. Select Rule Target as Node. Ensure that Rule Category is Event Collection.
Do not enter an OID here. Click Create to complete Rule creation.
To create an Event View
打开SCOM Operations Console and go to Monitoring.
Create a folder. Right-click the folder and then select New > Event View. Select the Target as Node. Select the group created earlier. This will only show Traps from XenMobile Server nodes. In addition, you can select generated by specific rules and select XenMobile Server specific rules.
To create a rule to receive all traps as alerts
打开SCOM Operations Console and go to Authoring.
Right-click Rules and then select Create a new rule. Follow the wizard to complete Rule creation.
Select Alert Generating Rules > Event Based > SNMP Trap (Alert)
Enter Rule Name and Description. Select Rule Target as Node. Ensure that Rule Category is Alert.
Do not enter any OID. Click Next.
Enter Alert name. Add appropriate Alert description. Set the Priority and Severity for the alert.
To create the alert view
打开SCOM Operations Console and go to Monitoring.
Create a folder. Right-click the folder and select New > Alert View. Select the Target as Node. Select the group created earlier. This will only show Alerts from XenMobile Servers.
In addition, you can select generated by specific sources and select XenMobile Server specific rules.
To create a rule based on a specific OID
Note: There could be multiple approaches.
打开SCOM Operations Console and go to Authoring.
Right-click Rules and then select Create a new rule. Follow the wizard to complete Rule creation. Select Alert Generating Rules > Event Based > SNMP Trap (Alert)
Enter Rule Name and Description. Select Rule Target as Node. Ensure that Rule Category is Alert.
Enter OID 1.3.6.1.2.1.88.2.0.1 (mteTriggerFired).
Enter Alert name. Add appropriate Alert description. Set the Priority and Severity for the alert.
Export the Management Pack and edit the .xml file as shown below.
Add the following in the xml file:
For details, see the Microsoft blog post.https://blogs.technet.microsoft.com/kevinholman/2015/02/03/snmp-trap-monitoring-with-scom-2012-r2/
Note: There could be other ways to configure this. This specific example is based on the blog post mentioned above.EventData/DataItem/SnmpVarBinds/SnmpVarBind[6]/Value ContainsSubstring .1.3.6.1.4.1.3845.5.1.1.18.1.0
< / >表达Update the version number appropriately:
<版本> 1.0.0.1 > < /版本
Import the .xml file as a management pack.
In Authoring > Rules, right-click the Rule created and go to Properties.
In Configuration, the added condition should be visible. Click Edit to view and edit the condition.
Create SNMP probe unit monitor
打开SCOM Operations Console and go to Authoring.
Right-click Monitors and then select Create a monitor > Unit Monitor.
Select SNMP > Probe Based Detection > Single Event Detection > SNMP Probe Monitor.
Enter Monitor name and Description. Select Monitor Target as Node.
Enter the OID to be monitored. Select Frequency.
Enter appropriate threshold value: /DataItem/SnmpVarBinds/SnmpVarBind[1]/Value
Enter the OID to be monitored. Select Frequency.
Enter appropriate threshold value for the second SNMP probe: /DataItem/SnmpVarBinds/SnmpVarBind[1]/Value.
Set appropriate Health State for the two SNMP Probes.
Select how the alert will be generated. Enter Alert name and description. Set Priority and Severity for this alert.
To create performance rules to plot graphs
打开SCOM Operations Console and go to Authoring. Right-click Rules and the select Create a new rule.
Select Collection Rules > Performance Based > SNMP Performance.
输入规则名称和描述。选择规则圆盾t as Node. Ensure that Rule Category is Performance Collection.
Enter the required OID. Select Frequency.
To create performance views
Open SCOM Operations Console and go to Monitoring. Create a folder. Right-click the folder and select New > Performance View. Select the Target as Node.
Create multiple performance views for multiple rules or add all the rules in a single view.