Skip to content

Instantly share code, notes, and snippets.

@mrxinu
Created August 14, 2020 13:17
Show Gist options
  • Save mrxinu/5746b41299fb7b12739a983f3ba23269 to your computer and use it in GitHub Desktop.
Save mrxinu/5746b41299fb7b12739a983f3ba23269 to your computer and use it in GitHub Desktop.
<AlertDefinition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Alerting.Models">
<AlertID>1009</AlertID>
<AlertMessage>All replication neighbors are dead</AlertMessage>
<AlertRefID>74913425-d003-4b48-bcb0-96a049f31ce6</AlertRefID>
<Canned>false</Canned>
<Category />
<CreatedBy>omavel</CreatedBy>
<CustomProperties xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>ResponsibleTeam</d2p1:Key>
<d2p1:Value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">CSA</d2p1:Value>
</d2p1:KeyValueOfstringanyType>
</CustomProperties>
<Description>Alert if all of replication neighbors are dead for 10 minutes</Description>
<Enabled>true</Enabled>
<ExecutionTimePeriods xmlns:d2p1="http://schemas.solarwinds.com/2008/Core" />
<Frequency>PT1M</Frequency>
<LastEdit>2020-08-05T15:56:55.8066667Z</LastEdit>
<Name>Replication failed on the node</Name>
<NotificationEnabled>true</NotificationEnabled>
<NotificationSettings xmlns:d2p1="http://schemas.solarwinds.com/2008/Core">
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:NetObjectType>APM: Component</d2p1:NetObjectType>
<d2p1:Severity>Critical</d2p1:Severity>
<d2p1:Subject>Replication failed on the node</d2p1:Subject>
<d2p1:_properties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:Key>Component Name</d3p1:Key>
<d3p1:Value>
<d2p1:Name>Component Name</d2p1:Name>
<d2p1:Value>${ComponentName}</d2p1:Value>
</d3p1:Value>
</d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:Key>Component Type Name</d3p1:Key>
<d3p1:Value>
<d2p1:Name>Component Type Name</d2p1:Name>
<d2p1:Value>${DisplayType}</d2p1:Value>
</d3p1:Value>
</d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:Key>Component Status</d3p1:Key>
<d3p1:Value>
<d2p1:Name>Component Status</d2p1:Name>
<d2p1:Value>${ComponentStatus}</d2p1:Value>
</d3p1:Value>
</d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:Key>Statistic Data</d3p1:Key>
<d3p1:Value>
<d2p1:Name>Statistic Data</d2p1:Name>
<d2p1:Value>${StatisticData}</d2p1:Value>
</d3p1:Value>
</d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
<d3p1:Key>Component Message</d3p1:Key>
<d3p1:Value>
<d2p1:Name>Component Message</d2p1:Name>
<d2p1:Value>${ComponentMessage}</d2p1:Value>
</d3p1:Value>
</d3p1:KeyValueOfstringAlertNotificationProperty9sQWCBBt>
</d2p1:_properties>
</NotificationSettings>
<ObjectType>APM: Component</ObjectType>
<Reset>
<Conditions>
<ConditionChainItem>
<AndThenTimeInterval i:nil="true" />
<ChainType>ResetInverseToTrigger</ChainType>
<Condition xmlns:d5p1="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Alerting" i:nil="true" />
<ConjunctionOperator>None</ConjunctionOperator>
<IsInvertedMinCountThreshold>false</IsInvertedMinCountThreshold>
<NetObjectsMinCountThreshold i:nil="true" />
<ObjectType i:nil="true" />
<SustainTime i:nil="true" />
<Type i:nil="true" />
</ConditionChainItem>
</Conditions>
</Reset>
<ResetActions xmlns:d2p1="http://schemas.solarwinds.com/2008/Orion" />
<Severity>Serious</Severity>
<Trigger>
<Conditions>
<ConditionChainItem>
<AndThenTimeInterval i:nil="true" />
<ChainType>Trigger</ChainType>
<Condition xmlns:d5p1="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Alerting" xmlns:d5p2="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Alerting.Plugins.Conditions.Dynamic" i:type="d5p2:AlertConditionDynamic">
<d5p2:ExprTree>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Field</d5p1:NodeType>
<d5p1:Value>Orion.APM.ComponentAlert|ComponentName|ComponentAlert</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value>SourceDSA (Neighbor 1)</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>=</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Field</d5p1:NodeType>
<d5p1:Value>Orion.APM.Component|Status</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value>14</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>=</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>AND</d5p1:Value>
</d5p2:ExprTree>
<d5p2:Scope>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Field</d5p1:NodeType>
<d5p1:Value>&lt;this&gt;.Orion.APM.Application|instance|Application</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child />
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value>swis://ourswsserver/Orion/Orion.Nodes/NodeID=455/Applications/ApplicationID=1029</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value />
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>IS</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>AND</d5p1:Value>
</d5p2:Scope>
<d5p2:TimeWindow i:nil="true" />
</Condition>
<ConjunctionOperator>None</ConjunctionOperator>
<IsInvertedMinCountThreshold>false</IsInvertedMinCountThreshold>
<NetObjectsMinCountThreshold i:nil="true" />
<ObjectType>APM: Component</ObjectType>
<SustainTime>PT10M</SustainTime>
<Type xmlns:d5p1="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Alerting.Plugins.Conditions.Dynamic" i:type="d5p1:ConditionTypeDynamic" />
</ConditionChainItem>
<ConditionChainItem>
<AndThenTimeInterval i:nil="true" />
<ChainType>Trigger</ChainType>
<Condition xmlns:d5p1="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Alerting" xmlns:d5p2="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Alerting.Plugins.Conditions.Dynamic" i:type="d5p2:AlertConditionDynamic">
<d5p2:ExprTree>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Field</d5p1:NodeType>
<d5p1:Value>Orion.APM.ComponentAlert|ComponentName|ComponentAlert</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value>SourceDSA (Neighbor 2)</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>=</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Field</d5p1:NodeType>
<d5p1:Value>Orion.APM.Component|Status</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value>14</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>=</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>AND</d5p1:Value>
</d5p2:ExprTree>
<d5p2:Scope>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child i:nil="true" />
<d5p1:NodeType>Field</d5p1:NodeType>
<d5p1:Value>&lt;this&gt;.Orion.APM.Application|instance|Application</d5p1:Value>
</d5p1:Expr>
<d5p1:Expr>
<d5p1:Child>
<d5p1:Expr>
<d5p1:Child />
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value>swis://ourswsserver/Orion/Orion.Nodes/NodeID=455/Applications/ApplicationID=1029</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Constant</d5p1:NodeType>
<d5p1:Value />
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>IS</d5p1:Value>
</d5p1:Expr>
</d5p1:Child>
<d5p1:NodeType>Operator</d5p1:NodeType>
<d5p1:Value>AND</d5p1:Value>
</d5p2:Scope>
<d5p2:TimeWindow i:nil="true" />
</Condition>
<ConjunctionOperator>And</ConjunctionOperator>
<IsInvertedMinCountThreshold>false</IsInvertedMinCountThreshold>
<NetObjectsMinCountThreshold i:nil="true" />
<ObjectType>APM: Component</ObjectType>
<SustainTime>PT10M</SustainTime>
<Type xmlns:d5p1="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Alerting.Plugins.Conditions.Dynamic" i:type="d5p1:ConditionTypeDynamic" />
</ConditionChainItem>
</Conditions>
</Trigger>
<TriggerActions xmlns:d2p1="http://schemas.solarwinds.com/2008/Orion" />
<Uri>swis://ourswsserver/Orion/Orion.AlertConfigurations/AlertID=1009</Uri>
</AlertDefinition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment