NetXMS Support Forum

English Support => General Support => Topic started by: Nikk on November 25, 2013, 03:47:35 PM

Title: Windows Service states
Post by: Nikk on November 25, 2013, 03:47:35 PM
Hi,

I was wondering if there is way to create DCI's System.ServiceState(instance) for all services on windows with Startup Type "Automatic"?
Or now, when i have added all services manually, can I add Thresholds to them all at once, or I have to do that individually?

Thanks in advance,
Nikk
Title: Re: Windows Service states
Post by: Victor Kirhenshtein on November 25, 2013, 04:37:17 PM
Hi!

If you know Python, you best option is to create script for nxshell which will do bulk changes. There are some examples on our wiki: http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations (http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations).

Best regards,
Victor
Title: Re: Windows Service states
Post by: Nikk on November 25, 2013, 05:28:24 PM
Ok, will give a try :)

Nikk
Title: Re: Windows Service states
Post by: Alex Kirhenshtein on November 25, 2013, 10:49:13 PM
I usually setup single DCI with thresholds, then convert it to template, export, and use resulting xml as a template for script, which generate new template xml based on list of services (in this example)
Title: Re: Windows Service states
Post by: Nikk on November 28, 2013, 09:33:31 AM
Thank you for the advice :)

Nikk