forked from stegenfeldt/Atea.Windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from stegenfeldt/master
Merge from master
- Loading branch information
Showing
39 changed files
with
1,096 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Atea.Windows.File.Monitoring/HealthModel/Discoveries/FileAgeFolderDiscovery.mpx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<Monitoring> | ||
<Discoveries> | ||
<Discovery ID="Atea.Windows.File.FileAgeFolder.Discovery" Enabled="true" Target="Atea.Windows.File.Monitoring.Seed" ConfirmDelivery="true" Remotable="false" Priority="Normal"> | ||
<Category>Discovery</Category> | ||
<DiscoveryTypes> | ||
<DiscoveryClass TypeID="Atea.Windows.File.FileAgeFolder" /> | ||
</DiscoveryTypes> | ||
<DataSource ID="DiscoveryDS" TypeID="Atea.Windows.File.FileAgeFolder.DiscoveryDS"> | ||
<MPElement>$MPElement$</MPElement> | ||
<TargetID>$Target/Id$</TargetID> | ||
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName> | ||
<IntervalSeconds>14400</IntervalSeconds> | ||
</DataSource> | ||
</Discovery> | ||
</Discoveries> | ||
</Monitoring> | ||
<LanguagePacks> | ||
<LanguagePack ID="ENU" IsDefault="true"> | ||
<DisplayStrings> | ||
<DisplayString ElementID="Atea.Windows.File.FileAgeFolder.Discovery"> | ||
<Name>Atea FileAge Folder Discovery</Name> | ||
</DisplayString> | ||
</DisplayStrings> | ||
</LanguagePack> | ||
</LanguagePacks> | ||
</ManagementPackFragment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
Atea.Windows.File.Monitoring/HealthModel/Monitors/FileAge.mptg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<TemplateGroup> | ||
<Instances> | ||
<Instance ID="Instance1cb8bbbf42bb4bd8ba0ce5a2d4aaa2da" Type="Microsoft.SystemCenter.Authoring.CodeGeneration.Monitoring.UnitMonitor" Version="1.0.0.0"> | ||
<UnitMonitorConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<MonitorType>Windows.File.FileAge.MonitorType</MonitorType> | ||
<MonitorConfig><TimeoutSeconds>300</TimeoutSeconds><IntervalSeconds>300</IntervalSeconds><FolderFriendlyName>$Target/Property[Type="Atea.Windows.File.FileAgeFolder"]/FriendlyName$</FolderFriendlyName><FileAgeAttribute>$Target/Property[Type="Atea.Windows.File.FileAgeFolder"]/FileAgeAttribute$</FileAgeAttribute></MonitorConfig> | ||
<MonitorOperationalStates> | ||
<OperationalState> | ||
<OperationalStateId>Healthy</OperationalStateId> | ||
<OperationalStateDisplayName>No Files Found</OperationalStateDisplayName> | ||
<MonitorTypeStateId>Healthy</MonitorTypeStateId> | ||
<HealthState>Success</HealthState> | ||
</OperationalState> | ||
<OperationalState> | ||
<OperationalStateId>Error</OperationalStateId> | ||
<OperationalStateDisplayName>Bad Files Found</OperationalStateDisplayName> | ||
<MonitorTypeStateId>Error</MonitorTypeStateId> | ||
<HealthState>Error</HealthState> | ||
</OperationalState> | ||
</MonitorOperationalStates> | ||
<ParentMonitor>Health!System.Health.AvailabilityState</ParentMonitor> | ||
<Accessibility>Public</Accessibility> | ||
<Id>FileAgeMonitor</Id> | ||
<DisplayName>File Age Monitor</DisplayName> | ||
<Description>This monitor will look for files in a folder, recursively if configured so, and alert if one of more files are found.</Description> | ||
<Target>Atea.Windows.File.FileAgeFolder</Target> | ||
<Enabled>true</Enabled> | ||
<Category>AvailabilityHealth</Category> | ||
<Remotable>true</Remotable> | ||
<Priority>Normal</Priority> | ||
<AlertAutoResolve>true</AlertAutoResolve> | ||
<AlertOnState>Error</AlertOnState> | ||
<AlertPriority>Normal</AlertPriority> | ||
<AlertSeverity>MatchMonitorHealth</AlertSeverity> | ||
<AlertName>Files with bad timestamp found</AlertName> | ||
<AlertDescription>$Data/Context/Property[@Name="Summary"]$</AlertDescription> | ||
<ConfirmDelivery>false</ConfirmDelivery> | ||
</UnitMonitorConfig> | ||
</Instance> | ||
</Instances> | ||
</TemplateGroup> |
Binary file not shown.
69 changes: 0 additions & 69 deletions
69
Atea.Windows.File.Monitoring/Scripts/AteaFCTPSPropertyBag.ps1
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.