Dell Server One time informational Unit Monitor.
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.
Target | Microsoft.SystemCenter.ManagementServer | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | Custom | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Information | ||
Alert Priority | Low | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.TimedScript.TwoStateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<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>
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 " & strPSCommand
Set oShell = CreateObject("WScript.Shell")
Set oExecutor = oShell.Exec(strCommand)
oExecutor.StdIn.Close
intDiscoveredCount = CInt(oExecutor.StdOut.ReadAll)
If(intDiscoveredCount > 0) then
strStatus = "Failure"
Else
strStatus = "Success"
End If
Call oBag.AddValue("Status", strStatus)
Call oAPI.Return(oBag)
</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>