NetXMS Support Forum

English Support => General Support => Topic started by: karistod on June 03, 2014, 12:13:41 PM

Title: Status of All Services in Windows Server
Post by: karistod on June 03, 2014, 12:13:41 PM
He Guys,

I am trying to setup a DCI for status of All Windows Services, I put a new DCI with the following WMI Query: WMI.Query(root\CIMV2,SELECT * FROM Win32_Service,DisplayName)
However it seems that it only returns a single Value and not all the Services, how can achieve that. What we want to next is to also get the status and startmode of all the services so we can create alarms if any automatic service is stopped.
Title: Re: Status of All Services in Windows Server
Post by: karistod on June 03, 2014, 07:35:21 PM
I solved my one question.

If you go into DCI instead of a new parameter do a new table and there you can select System.Services as a DCI parameter and all the services are now listed there. Now I need to work out how to use that data in order to create events and alarms :)