Easy way to monitor Services
-
Is there an easy way to setup discovery (like with HDD for free space ect) on a node so the system will auto scan / check services, in an ideal world I would like the system to scan for all automatic services and add them, then the standard alerts if not running ect
Thank you
-
Hi,
most likely instance discovery for DCI creation should help (maybe with script a s a source).
Best regards,
Victor -
Hi,
Without providing a full guide (the Admin Guide, Wiki and Forum should be able to help with the details), you could use a PowerShell script to generate an ExternalList. Something like this:
$wmiServiceNames = (Get-WmiObject Win32_Service -Filter "StartMode='Auto'").Name foreach ($wmiServiceName in $wmiServiceNames) { $serviceDisplayName = (Get-Service $wmiServiceName).DisplayName $wmiServiceName + "," + $serviceDisplayName }Note, the above will provide a list of Service Names and Service Display Names, separated by commas.
That way you can use instance discovery to split the two, then use DCI the parameterSystem.ServiceState{instance}while being able to use the more readable {instance-name} for the DCI description.
Going a step further, you can create an event, action and event processing rule to automatically attempt to restart a service should it not be running.
Cheers
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login