I have a Classed based on the Microsoft.Windows.LocalService
what is the best way to roll up the health to the Windows Computer class?
Technology Tips and News
I have a Classed based on the Microsoft.Windows.LocalService
what is the best way to roll up the health to the Windows Computer class?
Hi
Sorry to take a step back but is there a specific reason for creating a class for the service. I rarely see the need but do understand there may be genuine reasons. Ideally, I'd usually create an application class (based on local application) and then use a unit service monitor targeted at the class. Health will roll up automatically.
Dependency roll up monitors allow you to roll up health to windows computer if that is what you are looking to do.
Cheers
Graham
Thanks Graham for the quick response,
I want to show views and alerts for the Windows Computers in one state view and then a separate state view for the services, with a report that will go out every morning.
I did try the application based on local application, I did not get it to rollup to windows computer but it must be something I missed.
Thanks,
Microsoft.Windows.LocalService has base class of Microsoft.Windows.LocalApplication, and LocalApplication automatically rolls up to computer (there is a dependency relationship already defined there). There is nothing you'll need to specifically author to make your custom class rollup health to Windows Computer if your base is LocalService, because this behavior is inherited.
that is what I did but it did not roll up
Classes I built
<ClassTypes>
<ClassType ID="APP.Servers" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.LocalApplication" Hosted="true" Singleton="false"
/>
<ClassType ID="APP.Services" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.LocalService" Hosted="true" Singleton="false">
<Property ID="ServiceName" Type="string" Key="true" CaseSensitive="false" Length="256" MinLength="0" />
<Property ID="ServiceProcessName" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
<Property ID="DisplayName" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
<Property ID="Description" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
</ClassType>
Discovery
Server Discovery
<Discovery ID="APP.Server.Discovery" Enabled="true" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
Service Discovery
<Discovery ID="APP.Services.Discovery" Enabled="true" Target="APP.Servers" ConfirmDelivery="false" Remotable="true" Priority="Normal">
I don't have a relationship defined, and it did not rollup, that is why I asked the question is there something I did wrong this boggled me a bit.
this is the Model I want as I have about 30 Applications I want to do this with.Ok so it was on the windows computer class not the Local Application class
thanks that was true.
Thanks Jonathan.
that is what I did but it did not roll up
Classes I built
<ClassTypes>
<ClassType ID="APP.Servers" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.LocalApplication" Hosted="true" Singleton="false"
/>
<ClassType ID="APP.Services" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.LocalService" Hosted="true" Singleton="false">
<Property ID="ServiceName" Type="string" Key="true" CaseSensitive="false" Length="256" MinLength="0" />
<Property ID="ServiceProcessName" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
<Property ID="DisplayName" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
<Property ID="Description" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
</ClassType>
Discovery
Server Discovery
<Discovery ID="APP.Server.Discovery" Enabled="true" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
Service Discovery
<Discovery ID="APP.Services.Discovery" Enabled="true" Target="APP.Servers" ConfirmDelivery="false" Remotable="true" Priority="Normal">
I don't have a relationship defined, and it did not rollup, that is why I asked the question is there something I did wrong this boggled me a bit.
this is the Model I want as I have about 30 Applications I want to do this with.