NetXMS Support Forum

English Support => Feature Requests => Topic started by: DIS on October 17, 2014, 12:42:31 PM

Title: Windows Services - Monitor all services with startup type "Automatic"
Post by: DIS on October 17, 2014, 12:42:31 PM
Dear Forum,

another nice check would be monitoring all services with startup type "Automatic" and if one of them is stopped, a warning message with the affected service should be generated.  ;D
Title: Re: Windows Services - Monitor all services with startup type "Automatic"
Post by: Alex Kirhenshtein on October 17, 2014, 06:57:49 PM
You can use PowerShell script as external parameter for that (or query WMI directly using WMI subagent):Get-WmiObject Win32_Service | Where-Object {$_.StartMode -eq 'Auto' -and $_.State -ne 'Running'} | Measure-Object | Foreach { $_.Count }