Hello All,
I'm trying to create a custom Linux class (newbie) but keep getting the
error below during discovery and I'm stuck. I'm not sure what I'm missing.
I check everything several time but can really pin-point the problem.
I hope someone can point me the right direction.
Discovery data couldn't be inserted to the database. This could have
happened because of one of the following reasons:
- Discovery data is stale. The discovery data is generated by an
MP recently deleted.
- Database connectivity problems or database running out of space.
- Discovery data received is not valid.
The following details should help to further diagnose:
DiscoveryId: cd4d6a5f-42d4-787b-5c0d-69bbea13bc8f
HealthServiceId: 43c0d143-9567-6f14-287b-f760221aab4a
Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException,ManagedTypeId
= db599a90-ef05-fa8c-61b9-cc388d46accd.
[image: Inline image 1]
<?xml version="1.0" encoding="utf-8"?>
<ManagementPack SchemaVersion="2.0" ContentReadable="true"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Manifest>
<Identity>
<ID>MPauthor.Linux.MP</ID>
<Version>1.0.0.56</Version>
</Identity>
<Name>MPauthor Linux Custom Management Pack</Name>
<References>
<Reference Alias="Unix">
<ID>Microsoft.Unix.Library</ID>
<Version>7.5.1025.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="System">
<ID>System.Library</ID>
<Version>7.5.8501.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="UnixAuth">
<ID>Unix.Authoring.Library</ID>
<Version>7.3.1.2</Version>
<PublicKeyToken>a0ae1bc76c673799</PublicKeyToken>
</Reference>
</References>
</Manifest>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="MPauthor.Linux.MP.AEMComputerRole"
Accessibility="Public" Abstract="false" Base="Unix!Microsoft.Unix.ComputerRole"
Hosted="true" Singleton="false" Extension="false">
<Property ID="AEM.Computer" Type="string" AutoIncrement="false"
Key="true" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false"
Scale="0" />
</ClassType>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="MPauthor.Linux.MP.AEMComputerRole.Discovery"
Target="Unix!Microsoft.Unix.Computer" Enabled="true" ConfirmDelivery="false"
Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="MPauthor.Linux.MP.AEMComputerRole">
<Property TypeID="MPauthor.Linux.MP.AEMComputerRole"
PropertyID="AEM.Computer" />
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS"
TypeID="UnixAuth!Unix.Authoring.TimedShellCommand.Discovery.DataSource">
<Interval>28800</Interval>
<TargetSystem>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</TargetSystem>
<ShellCommand>ls /folder/name -d | wc -l</ShellCommand>
<Timeout>60</Timeout>
<UserName>$RunAs[Name="Unix!Microsoft.Unix.ActionAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Unix!Microsoft.Unix.ActionAccount"]/Password$</Password>
<FilterExpression>
<RegExExpression>
<ValueExpression>
<XPathQuery>//*[local-name()="StdOut"]</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^1</Pattern>
</RegExExpression>
</FilterExpression>
<ClassId>$MPElement[Name="MPauthor.Linux.MP.AEMComputerRole"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name='MPauthor.Linux.MP.AEMComputerRole']/AEM.Computer$</Name>
<Value>Author</Value>
</Setting>
<Setting>
<Name>$MPElement[Name='Unix!Microsoft.Unix.Computer']/PrincipalName$</Name>
<Value>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name='System!System.Entity']/DisplayName$</Name>
<Value>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="MPauthor.Linux.MP.AEMComputerRole">
<Name>AEM Role Class</Name>
<Description></Description>
</DisplayString>
<DisplayString ElementID="MPauthor.Linux.MP.AEMComputerRole"
SubElementID="AEM.Computer">
<Name>AEM</Name>
<Description></Description>
</DisplayString>
<DisplayString ElementID="MPauthor.Linux.MP.AEMComputerRole.Discovery">
<Name>AEM Computer Role</Name>
<Description>Discovery for AEM Computer Role</Description>
</DisplayString>
<DisplayString ElementID="MPauthor.Linux.MP">
<Name>MPauthor Custom Linux MP Classes</Name>
<Description>MPauthor Custom Linux MP Classes</Description>
</DisplayString>
</DisplayStrings>
<KnowledgeArticles></KnowledgeArticles>
</LanguagePack>
</LanguagePacks>
</ManagementPack>