Citrix added IT infrastructure monitoring through SNMP in XenMobile Server 10.8. For details, see SNMP 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.
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.
Open the 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.
Open the 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.
Open the 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.
Open the 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.
Open the 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.
Open the 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.
Open the 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.
Open the 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.
Open the 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.
Note: There could be multiple approaches.
Open the 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.
<ConditionDetection ID="FilterSpecificVarbind" TypeID="System!System.ExpressionFilter">
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">EventData/DataItem/SnmpVarBinds/SnmpVarBind[6]/Value</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>.1.3.6.1.4.1.3845.5.1.1.18.1.0</Pattern>
</RegExExpression>
</Expression>
</ConditionDetection>
Update the version number appropriately:
<Version>1.0.0.1</Version>
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.
Open the 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.
Open the SCOM Operations Console and go to Authoring. Right-click Rules and the select Create a new rule.
Select Collection Rules > Performance Based > SNMP Performance.
Enter Rule name and Description. Select Rule Target as Node. Ensure that Rule Category is Performance Collection.
Enter the required OID. Select Frequency.
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.