NetXMS Support Forum

English Support => General Support => Topic started by: mpa3b on May 28, 2007, 01:16:08 PM

Title: Windows Services Monitoring
Post by: mpa3b on May 28, 2007, 01:16:08 PM
With System.ServiceState(*) no problem if instance contain one word, but if name contain two and more words, parametr don't return values
Title: Windows Services Monitoring
Post by: Alex Kirhenshtein on May 28, 2007, 03:36:53 PM
Such names should be wrapped in quotes: System.ServiceState("Ati HotKey Poller")

Also, you should use "service name", not "display name" (you can check them using "sc" command):

System.ServiceState("Bluetooth Support Service") will fail
System.ServiceState("BthServ") - works fine.

wbr, alex.