Dell Server (iSM) one-time alert Unit Monitor

Dell.ManagedServer.OneTimeInformationalAlert (UnitMonitor)

Dell Server One time informational Unit Monitor.

Knowledge Base article:

Please ensure that you have purchased the right number of licenses to discover and monitor Dell servers through iDRAC Service Module (iSM).

Discovering and monitoring Dell servers through iDRAC Service Module (iSM) is a licensed feature and if you wish to monitor servers using Dell OpenManage Server Administrator (OMSA), which is free, you can do so by using the Set as Preferred Monitoring Method task.

Element properties:

TargetMicrosoft.SystemCenter.ManagementServer
Parent MonitorSystem.Health.ConfigurationState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityInformation
Alert PriorityLow
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.TimedScript.TwoStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Dell OM : Dell Server (iSM) informational alert
This alert is generated when a Dell server is discovered through iDRAC Service Module (iSM) for the very first time. This is a one-time alert.
RunAsDefault

Source Code:

<UnitMonitor ID="Dell.ManagedServer.OneTimeInformationalAlert" Accessibility="Public" Enabled="true" Target="SC!Microsoft.SystemCenter.ManagementServer" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.TimedScript.TwoStateMonitorType" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Dell.ManagedServer.OneTimeInformationalAlert_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Low</AlertPriority>
<AlertSeverity>Information</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<ScriptName>iSMServerDiscovered.vbs</ScriptName>
<Arguments/>
<ScriptBody><Script>
Option Explicit

On Error Resume Next
SetLocale("en-us")

Dim oAPI, oBag, strStatus, intDiscoveredCount
Dim oExecutor, oShell, strCommand, strPSCommand

Set oAPI = CreateObject("MOM.ScriptAPI")
Set oBag = oAPI.CreatePropertyBag()

strPSCommand = " (Get-SCOMClass | ?{$_.Name -eq 'Dell.ManagedServer'} | Get-SCOMClassInstance).count "

strCommand = "powershell.exe -noprofile -command " &amp; strPSCommand

Set oShell = CreateObject("WScript.Shell")
Set oExecutor = oShell.Exec(strCommand)

oExecutor.StdIn.Close
intDiscoveredCount = CInt(oExecutor.StdOut.ReadAll)

If(intDiscoveredCount &gt; 0) then
strStatus = "Failure"
Else
strStatus = "Success"
End If

Call oBag.AddValue("Status", strStatus)
Call oAPI.Return(oBag)
</Script></ScriptBody>
<TimeoutSeconds>60</TimeoutSeconds>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Failure</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Success</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>