NetXMS Support Forum

English Support => General Support => Topic started by: Andy Dennis on March 31, 2010, 04:46:46 PM

Title: How to check a windows server status with () in the service name
Post by: Andy Dennis on March 31, 2010, 04:46:46 PM
Hello

I have a windows service which is called Lotus Domino Server (DLotusDominodata). I can't seem to monitor this as a service but I can monitor services without () (ie System.ServiceState("Alerter")) .

Is there anyway to get around this ?

Thanks

Andy
Title: Re: How to check a windows server status with () in the service name
Post by: Victor Kirhenshtein on May 05, 2010, 09:55:13 AM
Hi!

Are you sure that it's service name and not display name? Also, do you use quotes, like System.ServiceState("Lotus Domino Server (DLotusDominodata)") ?

Best regards,
Victor
Title: Re: How to check a windows server status with () in the service name
Post by: Goriem on July 08, 2013, 03:06:52 PM
Hi

I realise that this is an old thread, but i have just stumbled upon the same issue, i want to monitor an lotus domino server, and the service name (not display name) contains ( ) and there fore i cannnot get a service state and encapsulation the service name with "" doesn't help any ideas?

Regards
Title: Re: How to check a windows server status with () in the service name
Post by: Goriem on July 08, 2013, 03:10:48 PM
argh - sorry i had the "" at the wrong place, this offcource : System.ServiceState("Lotus Domino Server (ProgramFilesLotusDominodata)") works just fine..

sorry