Once you create a monitor for Linux services and wonder how to create a recovery task for service restart. Here is how you can do that. The following would go in a custom MP that has the Unix Library MP defined in the References sections with the Alias "Unix".
Insert this in the <Monitoring> section, right after the closing </Discoveries> tag :
Make sure to define the Display Strings as well:
<DisplayString ElementID=" Custom.SCX.Restart.Recovery">
<Name>SSH Daemon Recovery</Name>
<Description>WARNING: Running this diagnostic is unsecure, do not run this against machines you do not trust as it may expose credentials to an unknown system.</Description>
</DisplayString> By: -Chandan Bharti
Ed Price - MSFT edited Original. Comment: Title casing. And tags